File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/people/widgetViews/workspace Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ const EditWorkspaceModal = (props: EditWorkspaceModalProps) => {
205205 let img = '' ;
206206 const formData = new FormData ( ) ;
207207 if ( rawSelectedFile ) {
208+ console . log ( 'rawSelectedFile: ' + JSON . stringify ( rawSelectedFile ) ) ;
209+ console . log ( 'selectedImage: ' + JSON . stringify ( selectedImage ) ) ;
208210 formData . append ( 'file' , rawSelectedFile ) ;
209211 console . log ( 'Form Data: ' + JSON . stringify ( formData ) ) ;
210212 const file = await main . uploadFile ( formData ) ;
@@ -251,6 +253,7 @@ const EditWorkspaceModal = (props: EditWorkspaceModalProps) => {
251253 const handleFileInputChange = ( e : ChangeEvent < HTMLInputElement > ) => {
252254 const file = e . target . files && e . target . files [ 0 ] ;
253255 if ( file ) {
256+ console . log ( "File: " + JSON . stringify ( file ) )
254257 // Display the selected image
255258 const imageUrl = URL . createObjectURL ( file ) ;
256259 setSelectedImage ( imageUrl ) ;
@@ -264,6 +267,7 @@ const EditWorkspaceModal = (props: EditWorkspaceModalProps) => {
264267 event . preventDefault ( ) ;
265268 const file = event . dataTransfer . files [ 0 ] ;
266269 if ( file ) {
270+ console . log ( "File: " + JSON . stringify ( file ) )
267271 const imageUrl = URL . createObjectURL ( file ) ;
268272 setSelectedImage ( imageUrl ) ;
269273 setRawSelectedFile ( file ) ;
You can’t perform that action at this time.
0 commit comments