Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Uploadify HTTP Error


80 Posts   22563 Views


26 January 2011 at 4:57am (Last edited: 26 January 2011 4:58am), Community Member, 46 Posts

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?



26 January 2011 at 5:24am 4085 Posts

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:


26 January 2011 at 5:40am Community Member, 46 Posts

okok.. installed it, got the response

<title>401 Authorization Required</title>
<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>

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


26 January 2011 at 5:47am 4085 Posts

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?

Can you disable mod_security?


1 February 2011 at 6:18pm Community Member, 17 Posts

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


1 February 2011 at 8:34pm Community Member, 46 Posts

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....


8 February 2011 at 5:44pm Community Member, 26 Posts

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.



8 February 2011 at 6:23pm 4085 Posts

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