Author Topic: Download error! but downloading works  (Read 4004 times)

0 Members and 1 Guest are viewing this topic.

Offline superjari

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • FootyGoal.net
Download error! but downloading works
« on: June 19, 2005, 08:10:51 PM »
After planning on using 4images for my video-download site I finally took the step and started using it today after creating my own template. Now all seems to work fine, I don't need the ability to download images, just zip-files, so I added onlky the zip extension to the settings' valid file extensions...

When I hit the download button for a file to download I quickly see a white page with the text Download error! which changes into the defaullt files page just as fast as it is shown, next I'm able to choose open or save without a problem from the popped up box. I think the downloads are counted, though I'm not completely sure...

You can have a look here to see what I mean:

http://www.footygoal.net/details.php?image_id=2

One more thing I might add is that the files are stored on a different server...

I tried in both Maxthon and IE 6...

THNX in advance to anyone who can help me!

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
Re: Download error! but downloading works
« Reply #1 on: June 19, 2005, 09:17:16 PM »
sorry, I'm confused, what exactly is your question? the download works just fine, everything seems to be fine, so what is the problem?
maybe try to remove or comment out this line in download.php:
Code: [Select]
      echo $lang['download_error']."\n<!-- NO FILE DATA / FILE NOT FOUND //-->";
also, as I understand your are using download url for the files, correct? do u enter the full path including http:// ?
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 superjari

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • FootyGoal.net
Re: Download error! but downloading works
« Reply #2 on: June 20, 2005, 06:13:47 AM »
I'm using the normal image file URL, not the download URL, the full http:// is in the URL yes...

My problem is that I get briefly get to see a page which says download error! while (as you said) the download works fine, I just wonder why it does this. If I remove that line I don't get that error, but a quick look at a blank page instead. Also, I see te link opens in a new window, is there some way to avoid this?

Thanks!

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
Re: Download error! but downloading works
« Reply #3 on: June 20, 2005, 06:45:58 AM »
try this:
in download.php find:
Code: [Select]
    $file['file_path'] = dirname($image_row['image_media_file'])."/".$file['file_name'];
replace it with:
Code: [Select]
    $file['file_path'] = $image_row['image_media_file'];
    $remote_url = 1;
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 superjari

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • FootyGoal.net
Re: Download error! but downloading works
« Reply #4 on: June 20, 2005, 09:29:09 PM »
Thank you very much, that helped!  8)