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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Filesize is zero bytes.


Reply

3 Posts   437 Views

Avatar
bunheng

2 September 2013 at 1:02am Community Member, 78 Posts

Hi There,

I always get error "Filesize is zero bytes." while uploading the photo to my site. I test it on local machine it's work fine. Any body have solution?

Thanks

Attached Files
Avatar
Sean

3 September 2013 at 5:20pm (Last edited: 3 September 2013 5:22pm), Forum Moderator, 921 Posts

This might be a PHP / web server configuration issue. Do you know what the maximum post size and file upload limits are? You can check with a script that has phpinfo() in it and search for "post_max_size" and "upload_max_filesize".

If those are set sufficiently high enough, it might be nginx or Apache web server instead, depending on your setup.
In those cases, the web server might need some configuration changes to allow bigger post limits.

Avatar
Riposte

4 September 2013 at 2:02pm Community Member, 10 Posts

I think this happened to me when the permissions were not correct on the folder i.e no write permissions.