Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify HTTP Error

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10
Go to End
Author Topic: 22035 Views
  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Uploadify HTTP Error Link to this post

    I don't even think you need that tool if you just watch your Apache accesslog:

    So here's the request:
    "POST /admin/assets/EditForm/field/Files/UploadifyForm/field/UploadedFiles/upload?ctf[Files][start]=0&ctf[Files][per_page]=10&ctf[Files][showall]=0&ctf[Files][sort]=SortOrder&ctf[Files][sort_dir]=&ctf[Files][search]=&ctf[Files][filter]=&ctf[Files][view]= HTTP/1.1" 401 683 "-" "Adobe Flash Player 10"

    But I don't seem to see the file in there.

    PHP Error Log is empty..... $allowed_extensions is empty so everything should work. FileSize throws a different error.

    And here comes the weird thing. It did work a couple of days ago and I didn't change the File class. It still works on my development environment. But not anymore on the live server..... this is really confusing.

    Could you point me to where Uploadify would throw a error in PHP so I can see the message that is returned to Flash?

    thx

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify HTTP Error Link to this post

    You've got the request, but what you really need is the response, and you need to packet sniff for that. Flash won't throw PHP errors. It just knows HTTP codes.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Uploadify HTTP Error Link to this post

    okok.. installed it, got the response

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>401 Authorization Required</title>
    </head><body>
    <h1>Authorization Required</h1>
    <p>This server could not verify that you
    are authorized to access the document
    requested. Either you supplied the wrong
    credentials (e.g., bad password), or your
    browser doesn't understand how to supply
    the credentials required.</p>
    </body></html>

    This looks like it points to the session.use_only_cookies maybe.... but it is set to "Off"

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify HTTP Error Link to this post

    Ahh, a 401. Nasty. That's Apache saying it doesn't like something about your request. Looks like your server might be configured a little paranoid, refusing requests from Flash?

    http://www.checkupdown.com/status/E401.html

    Can you disable mod_security?

  • yug
    Avatar
    Community Member
    17 Posts

    Re: Uploadify HTTP Error Link to this post

    Now i dont get the http error, but the progress bar is stuck on 100%

    When installing Charles, there is no response from the server.

    This normally works on my local machine but not on the web server

  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Uploadify HTTP Error Link to this post

    I cannot disable mod_security as I don't have the rights to do so...

    Still weird for me also.... I just can't seem to be able to create files. Replacing works....

  • webtonic
    Avatar
    Community Member
    26 Posts

    Re: Uploadify HTTP Error Link to this post

    I have a similar problem, Silverstripe 2.4.2 upgraded swfupload to uploadify as I have to upload .vcf files when selecting the file in files and images I receive a HTTP error.
    Not a server problem as I have ftp'd onto the server and can view the files I have uploaded and they have been named filename2.vcf, filename3.vcf etc.
    I can upload other files, any suggestions would be much appreciated.

    thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify HTTP Error Link to this post

    I don't think Silverstripe allows .vcf files. Check File::$allowed_extensions.

    22035 Views
Page: 1 2 3 4 5 6 7 8 9 10
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.