ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

The file could not be written to disk.

November 18, 2011 1:03pm

Subscribe [3]
  • #1 / Nov 18, 2011 1:03pm

    Jamie

    33 posts

    Hi,

    Im having issues uploading large zip files via the CP (files over 500mb) - I receive error The file could not be written to disk.

    My php.ini upload_max_filesize and post_max_size are set to 1000M & I’m on a dedicated server. This hasn’t been an issue in the past.

    My XSS filtering is set to off.

    I’m using EE 2.3.1

    it’s been a while since i uploaded a large file, so i’m unsure if it’s due to the recent update to 2.3.1 or not.

    Any ideas what else could be causing this issue?

    Thanks in advance,

    J

     

  • #2 / Nov 18, 2011 2:52pm

    I’d suggest something like FTP for files that large but to get it working have you tried looking at the Admin > Security & Privacy > Security & Session Preferences section and disabling XSS filtering? There are some other upload related PHP settings but I think you would get a different error.

  • #3 / Nov 18, 2011 3:59pm

    Jamie

    33 posts

    Hi Michael,

    I appreciate you taking the time to reply, but maybe you could have read my post fully. I explained that XSS filtering is off.

    Also - i’m fully aware that FTP is a sound method of transferring large files.. but in this case, it’s not the preferred method. Previously I’ve uploaded files up to 1GB without any issue.

    It now seems that something has changed - maybe someone with similar file upload requirements could kindly assist shedding some light on what might have changed to prevent this from happening now.

    Many Thanks,

    J

  • #4 / Nov 18, 2011 4:25pm

    Sorry I overlooked that, it happens. Is it possible with such a large file that you’re /tmp directory is filling up?

  • #5 / Nov 18, 2011 4:33pm

    Jamie

    33 posts

    Thanks Michael,

    There’s a 1TB hard drive on this server - is there a specific temp folder limit size? 

    I thought maybe it might be an apache config change - there used to be a ‘body size limit’ or something.

    I’m sure it must just be a setting change somewhere, but i’m stumped if i can find it.

  • #6 / Nov 18, 2011 4:42pm

    Most of the time the temp directory has its own partition for security and/or speed reasons. From command try “df -h” to see what your filesystem breakdown looks like. 1GB seems to be the most common size I see for the partition. As files are usually recycled often and 500MB HTTP uploads aren’t typical that usually suffices. If that is your problem then you can increase its size, check if anything can be cleared out or moved (for instance if you are using some kind of op-code caching) or go another upload route.

  • #7 / Nov 18, 2011 4:45pm

    Oops, and the directive you are looking for I believe is LimitRequestBody but I believe by default it is unlimited and just deferred to PHP’s handling.

  • #8 / Nov 18, 2011 4:49pm

    Jamie

    33 posts

    Thanks Michael - i’ll check that out.

    You know, at first I thought you were just another forum troller trying to up their status… thanks for taking the time to prove yourself otherwise.

    Your knowledge is appreciated, thanks again.

    J

  • #9 / Nov 20, 2011 1:19pm

    Sean C. Smith

    3818 posts

    Jamie,

    Did Michael’s suggestion help you?

    Michael, thanks again for all the help you are providing on the forums recently.

    Sean

  • #10 / Nov 22, 2011 11:19am

    Jamie

    33 posts

    Hi,

    Yes perfect. A quick terminal SSH session and I increased the tmp file to 4GB in size. can now upload files > 1GB in size without issue.

    Thanks Michael for pointing me in the right direction 😊

  • #11 / Nov 22, 2011 6:47pm

    Sean C. Smith

    3818 posts

    Jamie,

    I’m glad to see it’s working for you. Am going to close this thread now. Don’t hesitate to post again when you need assistance.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases