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.

All other Modules /

Discuss all other Modules here.

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

uploadify + swfupload problems


Go to End


2 Posts   2082 Views

Avatar
JonShutt

Community Member, 244 Posts

2 December 2011 at 10:42am

Hi, i'm having problems on a host I don't usually use - with uploadify and swfupload.

if I upload an image or file through the standard silverstripe single file uploader- the file goes up no probs.

if use swfupload - i'm getting errors:

"SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -200, File name: spotTrees.png, File size: 177047, Message: 404"

if I use uploadify, the host server detects me an attack and blocks my ip address!

feedback from the hosting company's error log was this:

/admin/EditForm/field/DownloadFiles/UploadifyForm/field/UploadedFiles/upload
?SecurityID=f6e6f196410921cbc49cdc6c2e9afa31d12da027&ctf[DownloadFiles][star
t]=0&ctf[DownloadFiles][per_page]=10&ctf[DownloadFiles][showall]=0&ctf[Downl
oadFiles][sort]=SortOrder&ctf[DownloadFiles][sort_dir]=&ctf[DownloadFiles]=&ctf[DownloadFiles][filter]=&ctf[DownloadFiles][view]= HTTP/1.1

Mod Security then reports "Access denied with code 403. Error processing
request body: Multipart: final boundary missing [severity "EMERGENCY"]". If
you Google "Uploadify modsecurity" you will see there are others who have
the same issue. Is there a different uploader you can use?

Any suggestions?

cheers

Avatar
JonShutt

Community Member, 244 Posts

2 December 2011 at 11:56am

ok, progress: i disabled mod_security using info form this page

http://www.askapache.com/htaccess/modsecurity-htaccess-tricks.html#Disabling_mod_security_conditionally_IP

however, this only works for fixed ips. it would be really cool if some clever person could write a method so that anyone logged in to the admin gets mod_security disabled...