4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: superjari 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!
-
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:
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:// ?
-
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!
-
try this:
in download.php find: $file['file_path'] = dirname($image_row['image_media_file'])."/".$file['file_name'];
replace it with: $file['file_path'] = $image_row['image_media_file'];
$remote_url = 1;
-
Thank you very much, that helped! 8)