Image Upload 401: images can be uploaded locally
401 occurs when uploading images to an online project. what is the reason (the code is the same as that in the local project)
Reply to discussion (solution)
Is the server iis?
This estimation is related to the server configuration.
For details, see the detailed information.
401 is not authorized
You should provide specific error information
Sorry, I didn't make it clear.
Online Project
401 in Firefox
Normal at Google
Both Firefox and Google are normal.
Sorry, I didn't make it clear.
Online Project
401 in Firefox
Normal at Google
Both Firefox and Google are normal.
Paste an Internet url.
Firefox
--- SWFUpload Instance Info --- Version: 2.2.0 2009-03-25Movie Name: SWFUpload_0Settings: upload_url:/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = flash_url:/lockton_corpweb/admin2s/assets/38f445df/swfupload.swf? Preventswfcaching = Failed: falserequeue_on_error: falsehttp_success: assume_success_timeout: 0file_post_name: Filedatapost_params: [object Object] file_types :*. jpg ;*. jpeg ;*. gif ;*. png; file_types_description :*. jpg ;*. jpeg ;*. gif ;*. png; file file_size_limit: 5MBfile_upload_limit: 0file_queue_limit: 10 debug: trueprevent_swf_caching: truebutton_placeholder_id: button_placeholder_1button _ Placeholder: Not found:/lockton_corpweb/admin2s/assets/38f445df/uploadbutton.gif button_width: 186button_height: 25button_text: Browse file (5 MB) button_text_style :. button {font-family: Arial, Helvetica, sans-serif; font-size: 13pt ;}. buttonSmall {font-size: 10pt;} button_text_top_padding: 2button_text_left_padding: 28button_action:-110button_disabled: falsecustom_settings: [object Object] Event Handlers: incluassigned: truedebug_handler assigned: trueSWF DEBUG: SWFUpload Init CompleteSWF DEBUG: swf debug: ----- swf debug output ---- swf debug: Build Number: SWFUPLOAD 2.2.0SWF DEBUG: movieName: SWFUpload_0SWF DEBUG: Upload URL:/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = swf debug: File Types String :*. jpg ;*. jpeg ;*. gif ;*. png; swf debug: Parsed File Types: jpg, jpeg, gif, png, swf debug: HTTP Success: 0SWF DEBUG: File Types Description :*. jpg ;*. jpeg ;*. gif ;*. png; File (*. jpg ;*. jpeg ;*. gif ;*. png;) swf debug: File Size Limit: 5242880 bytesSWF DEBUG: File Upload Limit: 0SWF DEBUG: File Queue Limit: 10SWF DEBUG: Post Params: swf debug: fileQuenueLimit = 10SW F debug: SessionID = release DEBUG: SWFUpload = 1SWF DEBUG: callbackJS = bannerman_enimage_upload_callbackSWF DEBUG: ----- end swf debug output ---- swf debug: Event: fileDialogStart: Browsing files. multi Select. allowed file types :*. jpg ;*. jpeg ;*. gif ;*. png; swf debug: Select Handler: specified ed the files selected from the dialog. processing the file list... swf debug: Even T: fileQueued: File ID: swfupload_0_swf DEBUG: Event: fileDialogComplete: Finished processing selected files. files selected: 1. files Queued: 1SWF DEBUG: StartUpload: First file in queueSWF DEBUG: Event: uploadStart: File ID: SWFUpload_0_0SWF DEBUG: Global Post Item: fileQuenueLimit = 10SWF DEBUG: Global Post Item: sessionID = u9fu4i7jr91k7lgl1o6b4jrgd3SWF DEBUG: Global Post Item: SWFUpload = 1SWF DEBUG: Global Post Item: callbackJS = bannerman_enimage_upload_callbackSWF DEBUG: ReturnUploadStart (): File accepted by startUpload event and readied for upload. Starting upload to/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = for File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. bytes: 7108. total: 72.16swf DEBUG: Event: uploadError: http error: File ID: SWFUpload_0_0. HTTP Status: 401.SWF DEBUG: Event: uploadComplete: Upload cycle complete. EXCEPTION:
Google
--- SWFUpload Instance Info --- Version: 2.2.0 2009-03-25Movie Name: SWFUpload_0Settings: upload_url:/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = flash_url:/lockton_corpweb/admin2s/assets/38f445df/swfupload.swf? Preventswfcaching = Failed: falserequeue_on_error: falsehttp_success: assume_success_timeout: 0file_post_name: Filedatapost_params: [object Object] file_types :*. jpg ;*. jpeg ;*. gif ;*. png; file_types_description :*. jpg ;*. jpeg ;*. gif ;*. png; file file_size_limit: 5MBfile_upload_limit: 0file_queue_limit: 10 debug: trueprevent_swf_caching: truebutton_placeholder_id: button_placeholder_1button _ Placeholder: Not found:/lockton_corpweb/admin2s/assets/38f445df/uploadbutton.gif button_width: 186button_height: 25button_text: Browse file (5 MB) button_text_style :. button {font-family: Arial, Helvetica, sans-serif; font-size: 13pt ;}. buttonSmall {font-size: 10pt;} button_text_top_padding: 2button_text_left_padding: 28button_action:-110button_disabled: falsecustom_settings: [object Object] Event Handlers: incluassigned: truedebug_handler assigned: trueSWF DEBUG: SWFUpload Init CompleteSWF DEBUG: swf debug: ----- swf debug output ---- swf debug: Build Number: SWFUPLOAD 2.2.0SWF DEBUG: movieName: SWFUpload_0SWF DEBUG: Upload URL:/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = swf debug: File Types String :*. jpg ;*. jpeg ;*. gif ;*. png; swf debug: Parsed File Types: jpg, jpeg, gif, png, swf debug: HTTP Success: 0SWF DEBUG: File Types Description :*. jpg ;*. jpeg ;*. gif ;*. png; File (*. jpg ;*. jpeg ;*. gif ;*. png;) swf debug: File Size Limit: 5242880 bytesSWF DEBUG: File Upload Limit: 0SWF DEBUG: File Queue Limit: 10SWF DEBUG: Post Params: swf debug: SWFUpload = 1SWF DEBUG: CallbackJS = bannerman_enimage_upload_callbackSWF DEBUG: fileQuenueLimit = 10SWF DEBUG: SessionID = terminal DEBUG: ----- end swf debug output ---- swf debug: Event: fileDialogStart: Browsing files. multi Select. allowed file types :*. jpg ;*. jpeg ;*. gif ;*. png; swf debug: Select Handler: specified ed the files selected from the dialog. processing the file list... swf debug: Even T: fileQueued: File ID: swfupload_0_swf DEBUG: Event: fileDialogComplete: Finished processing selected files. files selected: 1. files Queued: 1SWF DEBUG: StartUpload: First file in queueSWF DEBUG: Event: uploadStart: File ID: SWFUpload_0_0SWF DEBUG: Global Post Item: SWFUpload = 1SWF DEBUG: Global Post Item: callbackJS = bannerman_enimage_upload_callbackSWF DEBUG: Global Post Item: fileQuenueLimi T = 10SWF DEBUG: Global Post Item: SessionID = restart DEBUG: ReturnUploadStart (): File accepted by startUpload event and readied for upload. Starting upload to/lockton_corpweb/admin2s/index. php? R = bannerman/uploadAjax & id = for File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. bytes: 1530. total: 1530SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response encoded Ed: true Data: JS :( bannerman_enimage_upload_callback)('20160113100115.0.png ','/var/www/html/lockton_corpweb/admin2s/protected /.. /.. /materials/bannerman', 'secondarytile.png '); swf debug: Event: uploadComplete: Upload cycle complete.
This is the custom 401 in your Upload code. you have to check the code to see why.
However, I guess it is about the write permission of folders.