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.

Archive /

Our old forums are still available as a read-only archive.

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

Uploading Files


Go to End


1052 Views

Avatar
KatB

Community Member, 105 Posts

27 February 2008 at 2:30pm

Edited: 27/02/2008 3:09pm

Despite reading
"Can't upload images" by dio5, I am simply not succeeding.

I have tried:
a. Changing attributes:
i. Setting assets/ to 777
ii. Setting assets/Uploads/ to 777
iii. Creating a new folder to upload into, inside of assets/Uploads/
iv. Setting the attribute of the new folder to 777.

b. Adding these commands to the .htaccess file
SecFilterEngine Off
SecFilterScanPOST Off

c. Downloading an update to SWFUploader:
i. Uploading FlashDevelop/Flash9/swfupload_f9.swf
ii. Renaming the above file to replace the original SWFUpload.swf
iii. Copying the entire contents of FlashDiv to the server
iv. Renaming swfupload.js to the original SWFUpload.js filename.

d. In mysite/ there is a file _config.php, where I added this line:
HTTP::set_cache_age(0);

All to no avail.
Between each change I've tried to flush.

What have I done to stuff my installation up? And what can I do to put it back on track?

I'm not seeing much difference between Firefox 2.0.0.12 and Microsoft Internet Explorer 7.0.5730.11 XP SP2. The difference is that in FF the uploading bar slowly moves to the right and nothing happens, and in Microsoft 7 the bar doesn't move at all, I get a refresh but the file hasn't uploaded.

I do note that in that thread, marikas posted that an installation ontop of a previous may be to blame.

Now I did re-intall Silverstripe several times as I buggered it up, but I deleted everything, cleared out caches, and waited before re-installing.

Is this what is causing my issue? And how do I fix it?

Edit 1: Oddly, I can upload pngs quite happily, however '.exe's don't seem to be so happily uploaded, although apparently they are documented as being supported.

I put the original SWFUploader back.