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

Can't upload images


Go to End


66 Posts   403632 Views

Avatar
stockholm

3 Posts

4 January 2008 at 4:07pm

Hi,

it seems it's "SWFUpload" problem. After uploading newer version of "SWFUpload" I have now other problem - "Files&Images" module working, but "Insert image" on rightside not working (when I click "create folder" or "upload" link, system forward me from cms to website).

Maybe i should change somethin in SWFUpload .js or .swf files code?

Avatar
mundgold

Community Member, 19 Posts

4 January 2008 at 11:14pm

Hi,

I have the same behaviour after uploading newer version of SWFUpload ...

... in my opinion this SWFUpload-Stuff works - if it works - very smart - but not really reliable in different environments ...

Cheers Roland

Avatar
dio5

Community Member, 501 Posts

5 January 2008 at 12:46pm

@Stempy:

I think your problem is more a cache problem. Try adding this to your _config file:

HTTP::set_cache_age(0);

You should at least clear your browser cache once after that in order for it to work.

Avatar
gamelodge

Community Member, 6 Posts

8 January 2008 at 1:17am

I had the same problem.

With so many people having this problem should it be reported as a bug?

I added HTTP::set_cache_age(0); and all works fine now.

but how will HTTP::set_cache_age(0); effect the performance now?

Avatar
dio5

Community Member, 501 Posts

8 January 2008 at 1:24am

The problem with the caching is something different than the problem of images not being uploaded by the swf uploader.

I believe the set_cache thing just tells your browser not to use the cache for it. Don't think that is a bug.

Avatar
gamelodge

Community Member, 6 Posts

8 January 2008 at 2:00am

Worked for 1 image when I did the cache thing in FF.
Then stopped working again - tried fluching and clearing cache, still did not work.

Changed to IE and works fine now.
so must be some sort of FF thing:(

Avatar
dio5

Community Member, 501 Posts

8 January 2008 at 2:07am

Yeah we have the same experience. Works in IE, not in FF, but it still depends on the hosting because I had it work on localhost AND on Dreamhost.

Avatar
mbellino

Community Member, 32 Posts

9 January 2008 at 2:17am

Hello everybody

It seems that a few people have this problem.
The uploading of images should preferably works independent of the browser preference and hosting provider (mod_security, etc.).

Would be great if someone of the core team could take care of this issue.

Thanks

Mario