SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: zip upload

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2008
    Location
    Bristol ,England
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    zip upload

    Hi I am designing a site with a cms system and would like to add an option of uploading a zip file containing about 8mb, is there any pitfalls or any thing I should be aware of? is it as easy as just uploading a file?
    Any help and I would be grateful.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just make sure you set the max upload limit and possibly allow a longer script execution time to avoid timeouts on slow connections.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Member
    Join Date
    Mar 2009
    Location
    Australia, NSW
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are various numbers of security risks with uploading files. Is it only you who will be able to upload the files or anyone?

    It's pretty easy to secure uploading a zip. You simply attempt to open the zip file, if it fails then don't upload. If it suceeds it means the file is valid.

  4. #4
    SitePoint Zealot
    Join Date
    Sep 2008
    Location
    Bristol ,England
    Posts
    177
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its only one person who will be uploading the zips and he owns the website so in theory there shouldnt be any security risks.

    How would I allow longer script execution time?

    Thanks for help.


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
  •