Image Upload 401

Source: Internet
Author: User
Images can be uploaded properly locally

The online project upload image will appear 401, what is the reason (the code is the same as the local)


Reply to discussion (solution)

Is the server IIS?

This estimate is related to the configuration of the server.

Specifically, take a look at the detailed information.

401 is not authorized
You should give a specific error message

I'm sorry, I didn't make myself clear.

On-line items
Appeared in Firefox 401

In Google Normal



Local Firefox and Google are normal

I'm sorry, I didn't make myself clear.

On-line items
Appeared in Firefox 401

In Google Normal



Local Firefox and Google are normal


Put an extranet URL.

Firefox

---swfupload Instance Info---version:2.2.0 2009-03-25movie Name:SWFUpload_0Settings:upload_url:/lockton_c Orpweb/admin2s/index.php?r=bannerman/uploadajax&id=flash_url:/lockton_corpweb/admin2s/assets/38f445df/             Swfupload.swf?preventswfcaching=1452650545444use_query_string:falserequeue_on_error:falsehttp_success: Assume_success_timeout:0file_post_name:filedatapost_params: [Object Object]file_type S: *.jpg;*.jpeg;*.gif;*.png;file_types_description: *.jpg;*.jpeg;*.gif;*.png; file File_size_limit:5 Mbfile_upload_limit:0file_queue_limit:10debug:trueprevent_swf_caching:truebutto N_placeholder_id:button_placeholder_1button_placeholder:Not Setbutton_image_url:/lockton_corpweb/admin               2s/assets/38f445df/uploadbutton.gifbutton_width:186button_height:25button_text:browse file (5MB)   Button_text_style:. button {font-family:arial,helvetica,sans-serif; font-size:13pt;}. buttonsmall {font-size:1 0PT; }button_text_top_padding:2button_text_left_padding:28button_action: -110button_disabled:falsecusto M_settings: [Object object]event handlers:swfupload_loaded_handler Assigned:falsefile_dialog_start_handler Assi       Gned:falsefile_queued_handler Assigned:falsefile_queue_error_handler Assigned:trueupload_start_handler Assigned: Falseupload_progress_handler Assigned:trueupload_error_handler Assigned:trueupload_success_handler assigned : Trueupload_complete_handler assigned:truedebug_handler assigned:trueswf debug:swfupload Init Complet              eswf 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&i d=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 up Load limit:0swf debug:file Queue limit:10swf debug:post params:swf debug:filequenu elimit=10swf debug:sessionid=u9fu4i7jr91k7lgl1o6b4jrgd3swf Debug:swfuplo ad=1swf debug:callbackjs=bannerman_enimage_upload_callbackswf Debug:-----END SWF Debug OUTPUT- ---SWF debug:swf DEBUG:Event:fileDialogStart:Browsing files. Multi Select. Allowed file types: *.jpg;*.jpeg;*.gif;*.png; SWF Debug:select handler:received The files selected from the dialog. Processing the file list ... SWF DEBUG:Event:fileQueued:File id:swfupload_0_0swf DEBUG:Event:fileDialogComplete:Finished processing selected F ILes. Files selected:1. Files queued:1swf DEBUG:StartUpload:First file in queueswf DEBUG:Event:uploadStart:File id:swfu pload_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:7108swf 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_c Orpweb/admin2s/index.php?r=bannerman/uploadajax&id=flash_url:/lockton_corpweb/admin2s/assets/38f445df/             Swfupload.swf?preventswfcaching=1452650521992use_query_string:falserequeue_on_error:falsehttp_success: Assume_success_timeout:0file_post_name:filedatapost_params: [Object Object]file_type S: *.jpg;*.jpeg;*.gif;*.png;file_types_description: *.jpg;*.jpeg;*.gif;*.png; file File_size_limit:5 Mbfile_upload_limit:0file_queue_limit:10debug:trueprevent_swf_caching:truebutto N_placeholder_id:button_placeholder_1button_placeholder:Not Setbutton_image_url:/lockton_corpweb/admin               2s/assets/38f445df/uploadbutton.gifbutton_width:186button_height:25button_text:browse file (5MB)   Button_text_style:. button {font-family:arial,helvetica,sans-serif; font-size:13pt;}. buttonsmall {font-size:1 0PT; }button_text_top_padding:2button_text_left_padding:28button_action: -110button_disabled:falsecusto M_settings: [Object object]event handlers:swfupload_loaded_handler Assigned:falsefile_dialog_start_handler Assi       Gned:falsefile_queued_handler Assigned:falsefile_queue_error_handler Assigned:trueupload_start_handler Assigned: Falseupload_progress_handler Assigned:trueupload_error_handler Assigned:trueupload_success_handler assigned : Trueupload_complete_handler assigned:truedebug_handler assigned:trueswf debug:swfupload Init Complet              eswf 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&i d=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 up Load limit:0swf debug:file Queue limit:10swf debug:post params:swf debug:swfupload =1swf debug:callbackjs=bannerman_enimage_upload_callbackswf debug:filequ enuelimit=10swf debug:sessionid=qu71ijsksi8kvvdqudqo5crc86swf Debug:-----END SWF Debug OUTPUT- ---SWF debug:swf DEBUG:Event:fileDialogStart:Browsing files. Multi Select. Allowed file types: *.jpg;*.jpeg;*.gif;*.png; SWF Debug:select handler:received The files selected from the dialog. Processing the file list ... SWF DEBUG:Event:fileQueued:File id:swfupload_0_0swf DEBUG:Event:fileDialogComplete:Finished processing selected F ILes. Files selected:1. Files queued:1swf DEBUG:StartUpload:First file in queueswf DEBUG:Event:uploadStart:File id:swfu pload_0_0swf Debug:global post item:swfupload=1swf Debug:global post Item:callbackjs=bannerman_enimage_upload_ callbackswf Debug:global post item:filequenuelimit=10swf Debug:global post item:sessionid=  Qu71ijsksi8kvvdqudqo5crc86swf 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 received:true data:js: (BANNERMAN_ENIMAGE_UPL Oad_callback) (' 20160113100115.0.png ', '/var/www/html/lockton_corpweb/admin2s/protected/. /.. /materials/bannerman ', ' secondarytile.png '); SWF DEBUG:Event:uploadComplete:Upload CYCLE complete. 

This is your own upload code in the custom 401, you have to look at the code to see why this.
However, I guess it is a write permission issue for the folder.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.