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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Uploadify HTTP Error


Go to End


80 Posts   37910 Views

Avatar
spankmaster79

Community Member, 46 Posts

26 January 2011 at 4:57am

Edited: 26/01/2011 4:58am

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 January 2011 at 5:24am

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

Avatar
spankmaster79

Community Member, 46 Posts

26 January 2011 at 5:40am

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"

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 January 2011 at 5:47am

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?

Avatar
yug

Community Member, 17 Posts

1 February 2011 at 6:18pm

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

Avatar
spankmaster79

Community Member, 46 Posts

1 February 2011 at 8:34pm

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

Avatar
webtonic

Community Member, 26 Posts

8 February 2011 at 5:44pm

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

8 February 2011 at 6:23pm

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