Close Sidebar

I am getting a HTTP 405 error on an uploadify jquery script

0 votes
3,005 views
Hello guys,

I have been getting a HTTP 405 request error for a j-query script to upload a file using umbraco framework.  Any idea on how to resolve this irking error?
asked May 15, 2014 by Umari

2 Answers

0 votes

Hello Umari,

We really dont have much to work with from the above description...  can you please provide us with an error stack  trace such as the uploadify'* debug response (set debug to true, see here ) ?.. 

Since 405 is a Method Not Allowed error, it would also be great if you provide snippets of the upload form and your uploadify settings (might actually already be part of the debug output, if so, please ignore).

Haven't used Umbraco before, so please also make sure the ''uploader" property in your script is correctly mapped to the appropriate method or handler.

Thanks!

answered May 15, 2014 by ugochimbo (860 points)
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:             http://sigmacpas02:85/Scripts/uploadify/uploadify.php
SWF DEBUG: File Types String:      *.xml
SWF DEBUG: Parsed File Types:      xml
SWF DEBUG: HTTP Success:           0
SWF DEBUG: File Types Description: XML File (*.xml)
SWF DEBUG: File Size Limit:        0 bytes
SWF DEBUG: File Upload Limit:      0
SWF DEBUG: File Queue Limit:       999
SWF DEBUG: Post Params:
SWF DEBUG: ----- *** SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Single Select. Allowed file types: *.xml
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to http://sigmacpas02:85/Scripts/uploadify/uploadify.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 81920. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 294912. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 442368. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 524288. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 589824. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 671744. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 753664. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 933888. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1032192. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1163264. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1277952. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1392640. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1490944. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1523712. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1572864. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1638400. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1703936. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1802240. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1851392. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1949696. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2064384. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2162688. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2277376. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2392064. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2523136. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2654208. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2752512. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2785280. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2850816. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2916352. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 2998272. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3031040. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3080192. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3129344. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3162112. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3244032. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3375104. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3473408. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3538944. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3702784. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3801088. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 3948544. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4112384. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4259840. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4325376. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4472832. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4636672. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4800512. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4849664. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4947968. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5013504. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5160960. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5242880. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5373952. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5554176. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5750784. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5849088. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 5980160. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 6160384. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 6291456. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 6406144. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 6471680. Total: 6534448
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 6534448. Total: 6534448
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 405.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: Event: AssumeSuccess: 30 passed without server response
From the debug output, the file is successfully uploaded to the server. The error seem to come from the handler (Upload URL). Since Umbraco is a .Net CMS, I'ld advice you implement the handler (Upload.php) in any .Net language.. this way it would be easier to debug on the platform. Please see http://www.aspsnippets.com/Articles/Implement-Uploadify-jQuery-Plugin-in-ASPNet.aspx for a sample tutorial/script.
+1 vote
 
From the debug output, the file is successfully uploaded to the server. The error seem to come from the handler (Upload URL). Since Umbraco is a .Net CMS, I'ld advice you implement the handler (Upload.php) in any .Net language.. this way it would be easier to debug on the platform. Please see Here for a sample tutorial/script.

 

answered May 19, 2014 by ugochimbo (860 points)
  1. Login or Register

    Click to open login box. Login or register from here

  2. Search Box

    Click to open the search box. You can search within the site content here

  3. Hello Admin!

    You can reach to admin section by clicking on this navigation item

  4. Ask A Question

    Start asking a question by clicking on this navigation item

  5. Find All Recent Activities

    Here you can find all recent activities recent question, answer, comment etc

  6. Vote Question or Answer

    You can give up or down vote to the question or answer by clicking on respective arrow button

  7. Give Your Answer

    Click this button to give your answer to the question

  8. Add Comment

    To post comment click on the button

  9. Select Best Answer

    Consider the answer as the best answer for your question by clicking one to the tick

  10. Congratulations!!!

    Now you learn how to use site. Why don't you start to ask a question or provide some answer to the community!

...