SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast rkrathor's Avatar
    Join Date
    Feb 2014
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb PHP upload file (pics, in zipped format, rar file).

    Hi,
    I have some data to upload through php and the data could be in zipped or RAR format and file size could be more than 400MB. So i need some good code to work on this with minimum data loose and error.
    Could it be possible to upload such a large amount of data through php, if yes then i request to you please suggest some good stuff to use.

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2013
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP can upload as much file size as it can I believe. Your huge problem you will encounter on large file size is your php.ini or .htaccess. I have created my own "YouTube" sort of file uploading where you can only upload videos, but the file size are too large so I get the 413 error.

    I'm not sure if it'll help you, but you need to change the max_upload_size and max_upload_limit, but I've tried this and it still doesn't work. Tried it on .htaccess and it gives me error 500 apache misconfiguration.

    It's not working for me so I stopped building that application for a while now, but I'm certain that someone has gotten it to work. Your issue will probably be php.ini or .htaccess if you have access to either both of them.

  3. #3
    SitePoint Enthusiast rkrathor's Avatar
    Join Date
    Feb 2014
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    thanks "therockers".
    Can you pls share some code, it will help me.
    Thanks

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2013
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rkrathor View Post
    Hi,
    thanks "therockers".
    Can you pls share some code, it will help me.
    Thanks
    Please try to attempt it yourself. Forums are made to help people, not just "Do it all for me" kind of idea. I would like to share my ideas, but you have to attempt it first or else I'm doing your work for you and you won't know what to do when you encounter another problem. Also, you won't learn a thing if you make people do your work for you.

    I don't want to sound rude or mean, but that's how a lot of coding forums will do.

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,269
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    I have a shared host that doesn't allow me access to the ini file.

    But I have used ini_set to change things like max limits, memory, timeout etc with some success.
    http://www.php.net/manual/en/ini.list.php

  6. #6
    SitePoint Zealot bronze trophy xMog's Avatar
    Join Date
    Mar 2011
    Posts
    159
    Mentioned
    3 Post(s)
    Tagged
    2 Thread(s)
    I found this article:
    http://www.sitepoint.com/upload-large-files-in-php/

    Also take a look at the comments. It could help you!

    I found it looking for "how to upload large file with PHP" on Google. There's a lot
    Also, some other articles on stackoverflow:
    http://stackoverflow.com/questions/1...e-500mb-in-php
    http://stackoverflow.com/questions/1...ing-php-apache


Tags for this Thread

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
  •