Download large file does not work


As the title says I have a problem with downloading the video.
I have to create a form that allows to download a file in a folder, it works with photos, and even with videos (or anyway, the .mp4 file).

The problem comes when I try to download large files because PhP fails.
I have already changed the maximum size of the php.ini publication, the maximum file size, the memory limit and even the processing time of the script or enter it, but if that does not work anyway.

Strange things I noticed is that when I try to download large files, my name is php miss name and file extension, even though it works fine with small files.
How can I fix this? Is there a Php command to set on the script, or something else in php.ini, it seems that the php guide does not help me. Thank you

 $extension = pathinfo($_FILES[image]['name'], PATHINFO_EXTENSION); $target = "uploaded/"; $target = $target . $title.'.'.$extension; $pic=($_FILES['image']['name']); //Writes the photo to the server if(move_uploaded_file($_FILES['image']['tmp_name'], $target)) { } else {} 

The answer

According to our discussion in the comments, it seems that you have failed to restart the web server after you have modified your php.ini. This file is read at the beginning of the Web server process, not every time a page is accessible. Therefore, any changes made to this file require a restart of the Web server before they affect.

To be clear, restarting the Web server refers to the Web server service, not the operating system on the server.

Related articles

Downloading Large Files


Is there a program that will allow the wizard to download files larger than 20 Mb without being disconnected or if the wizard is blocked? I tried to download movies in my mda and I did not have my cable with me or a disk? I do not know the size of th

can not download large files on Incredible


I tried to upload / upload several files on my amazing 3g. I tried to download several times via the stock browser and tried to download via dropbox but each time the download is interrupted at random between 20,000 and 100,000 minutes. I do not get

Download large files without blocking


I'm working on the Spring Boot application, and I have problems downloading large files. That is, when I click on the download link in the client page, it takes a long time for the browser download dialog box to appear. For small files, it appears in

Unable to download large files with php Guzzle


I have problems downloading large files using Guzzle (5.2.0) I added the progress event listener and I got this output: Downloaded 0 of 0 Uploaded 966656 of 1467594 Downloaded 0 of 0 Uploaded 983040 of 1467594 Downloaded 0 of 0 Uploaded 999424 of 146

Download large files on storage card errors?


I was going to use my Tilt to download Vista SP1 to work the other night because the connection is much faster than mine at home. I first tried Netfront 3.5 which gave a file could not be read error after about 1 minute. Then I tried IE. I lifted the

Sudhir Choudhrie - Unable to download large files


Hi, This is Sudhir Choudhrie, I chose Firefox for my daily browsing and download needs because it has a function that allows you to suspend the current download and start it at any time or the next day. And you do not need a third-party trial downloa

Can not download large files from


Hello. I have problems with downloading large files from Some smaller files around 30M download OK. If I click on Download, nothing happens. Please take a look at the screenshot of mine. I erased all cookies but no use. I did not restore

Can not download large files


In the last few months, I have tried downloading large files, usually about 27-51 MB or more. It downloads normally, but in the end it says 99% full, 0mb remaining, but it never ends. He keeps saying "a few more moments". I let it work like this