4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Ushkand on December 19, 2002, 12:24:41 AM
-
Congratulations on a great script. Will be sending in donation very soon.
I am using this script for organizing videos online. I am uploading images from the videos and linking the video file using the 'download URL' field. This is when the problem begins - when a user downloads this file (which is also on the same server but a different folder), all they get is a 1KB file with the right file name and extension. Has anyone experienced this problem before?
Also, I need to let visitors download huge video files (~50MB). I am adding these the same way as above. But when I try to download these files by clicking on the 'download' button, the I download the video file but with the name 'download.htm'. The file size is also truncated to 25-27 MB. Is this problem related to 4images or apache or php. Any help will be greatly appreciated.
-
:( somebody please help!!!! :(
-
Come on guys, I desperatley need this to work.
-
I think the problem is your server configuration.
as I notised, even thought u make download button work as a link to download file from another server, 4images script still first download the file to your server temporary folder and then give it to the user...(atleast that how it works to me, even with local files) I've asked about downloading local files on the forum http://4homepages.de/forum/viewtopic.php?t=2321 ...:( nobody answered...
-
I just found witch code does this - in download.php :
$remote_url = 0;
if (!empty($image_row['image_download_url'])) {
if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
$file_name = $regs[1];
$file_extension = $regs[2];
$file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
$file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
}
else {
$file['file_path'] = $image_row['image_download_url'];
$remote_url = 1;
}
}
if this code change to this: $remote_url = 0;
if (!empty($image_row['image_download_url'])) {
$file['file_path'] = $image_row['image_download_url'];
$remote_url = 1;
}
then 4images script wont download file, it will just through the link to the user, but....it might not work properly, because the link will work as "open" not "save as".
-
I think the problem is your server configuration.
Thanks for your help V@no
Hey do you know what I need to change in the server configuration let visitors download complete files over 25MB? I am on a dedicated server so I can change anything and everything about the server.
Thanks again.
-
not sure... first set script time out with bigger value, then max RAM size for scripts...all this in php.ini file.
-
I set all these to maximum values but still having the same problem. Jan, may be you can help me fix this - Why does the file rename itself to download.htm when its size is greater than 25MB? Please help me!