SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Apr 2012
    Location
    RomÃ*ns D'Isonzo, Friuli-Venezia Giulia, Italy, It
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Let readers upload large files

    I have a Wordpress photography site and need to let users upload files larger than 10MB. I already increased upload_max_filesize in my php.ini to 30M.
    I created a form using Fast Secure Contact Form and allowed files large up to 20M.
    However, any time I try to upload a file bigger than 10MB, the form serves a blank page instead of the success notification.
    What else can I do?

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,072
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Try setting the maximum execution time higher.

    Check the errors from the $_FILES
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Member
    Join Date
    Apr 2012
    Location
    RomÃ*ns D'Isonzo, Friuli-Venezia Giulia, Italy, It
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, I already set the maximum execution time to 480, do you think it is enough?
    What do you mean with $_FILES?

  4. #4
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,072
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    http://www.php.net/manual/en/feature...oad.errors.php

    When you changed the maximum upload size, did you restart the server afterwards?
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  5. #5
    SitePoint Member
    Join Date
    Apr 2012
    Location
    RomÃ*ns D'Isonzo, Friuli-Venezia Giulia, Italy, It
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpacePhoenix View Post
    http://www.php.net/manual/en/feature...oad.errors.php

    When you changed the maximum upload size, did you restart the server afterwards?
    My site is hosted on bluehost, I don't know how to restart the server. Anyways, I already increased the upload limit in the past and it didn't require a restart.
    Thank you for the manual page but, where should I find the file array with the error codes?

  6. #6
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,072
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    On the form for the uploading, what is the field called for the upload?

    Is the new value for the memory limit showing ok in phpinfo() ?
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  7. #7
    SitePoint Member
    Join Date
    Apr 2012
    Location
    RomÃ*ns D'Isonzo, Friuli-Venezia Giulia, Italy, It
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpacePhoenix View Post
    On the form for the uploading, what is the field called for the upload?

    Is the new value for the memory limit showing ok in phpinfo() ?
    The form uses an input field of type file. You can see it here: http://www.fotocomefare.com/rubrica-giorgio-trucco/

    If I execute http://www.fotocomefare.com/info.php, all the settings are as I set them.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •