Author Topic: Videos and download issues  (Read 8453 times)

0 Members and 1 Guest are viewing this topic.

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Videos and download issues
« 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.

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Videos and download issues
« Reply #1 on: December 21, 2002, 12:17:24 AM »
:(  somebody please help!!!!  :(

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Someone please HELP!
« Reply #2 on: January 09, 2003, 02:01:41 AM »
Come on guys, I desperatley need this to work.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Videos and download issues
« Reply #3 on: January 09, 2003, 02:26:53 AM »
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...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Videos and download issues
« Reply #4 on: January 09, 2003, 03:23:45 AM »
I just found witch code does this - in download.php :
Code: [Select]
 $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:
Code: [Select]
 $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".
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Videos and download issues
« Reply #5 on: January 09, 2003, 08:27:21 PM »
Quote from: V@no
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.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Videos and download issues
« Reply #6 on: January 09, 2003, 11:52:03 PM »
not sure... first set script time out with bigger value, then max RAM size for scripts...all this in php.ini file.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Videos and download issues
« Reply #7 on: January 27, 2003, 07:40:31 PM »
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!