• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 541
  • Last Modified:

Uploading a 3 GB file using php

Dear Experts,

I am looking to develop a program that allows my users to upload very large files sizing around 3-5gb. I know the default 2mb limit can be overridden in php.ini file. But I guess just that is not enough to upload very large files like full movie videos.

So can anyone of you suggest a method that allows my users to upload 3 GB files to the web server. I am using PHP. Anyway if it is not possible using php, but can be implemented with any other language, please suggest.

Thanks & regards,
Jacob
0
jacobbbc
Asked:
jacobbbc
1 Solution
 
InsoftserviceCommented:
Hi,

create an .htaccess file  in root folder it would resolve ur all execution time issue
and paste

RewriteEngine On
php_value post_max_size 3000M
php_value upload_max_filesize 3500M
php_value max_execution_time 600000000
php_value max_input_time 6000000000
php_value memory_limit 4500M
0
 
InsoftserviceCommented:
0
 
BardobraveCommented:
Well, I will make here an appointment.

Http protocol is not thinked to upload great amounts of data, so the use of form posts, in any language, to send big files will result in terribly long waits for the postback. Usually ends with users getting tired of wait, thinking that the page has hanged and aborting the proccess.

The best option to this type of uses usually is to implement a ftp upload. Usually I've worked with third party components for ASP pages to make ftp uploads, but I'm pretty sure that should be developed components to integrate this inside php (maybe even php itself has it's own ftp posting methods).

I strongly recommend not use http protocol to such size files if you want your project to be succesful.
0
 
Mohamed AbowardaSoftware EngineerCommented:
0
 
Ray PaseurCommented:
Upload a 3GB file via HTTP?  Probably not a good idea.  PHP has some FTP functions that might be better suited to this.  
http://us3.php.net/manual/en/book.ftp.php

But speaking in a practical sense, it might even be better to have the client burn a DVD and send it via courier.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now