Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Upload file fails

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

Page: 1
Go to End
Author Topic: 795 Views
  • Jigar
    Avatar
    Community Member
    1 Post

    Upload file fails Link to this post

    Hello All,

    We have latest version of Silverstripe on our CentOS server.

    ---
    [root@server ~]# cat /etc/redhat-release
    CentOS release 5.8 (Final)

    [root@server ~]# php -v
    PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:48)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.

    [root@server ~]# cat /etc/php.ini | grep memory_limit
    memory_limit = 128M
    ---

    While trying to upload files, it fails and displays red progress bar with error: "Filesize is zero bytes." (Attached snapshot)

    I have checked apache access and error logs without much success. Can someone direct where to start debugging the issue?

    Thank you.
    Jigar

    Attached Files
  • 3dkiwi
    Avatar
    Community Member
    17 Posts

    Re: Upload file fails Link to this post

    Same issue here running on SLES 11 SP2. I also do not see any errors in log files.

    Modified php.ini in /etc/php5/apache2 directory to turn on logging, but nothing reported when upload fails.

    Made sure the assets directory is writable by the apache user. But doing a bit of a readup and there is a mention that PHP uploads to a temporary directory before then transferring to final destination. Does SS do this? Where is this temp dir?

    Cheers
    Jim

  • neilos
    Avatar
    Community Member
    19 Posts

    Re: Upload file fails Link to this post

    Make sure the /assets directory is writeable.
    I had this problem and changing the permissions fixed it.

    795 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.