Author Topic: uploading large files  (Read 15032 times)

0 Members and 1 Guest are viewing this topic.

Offline jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
uploading large files
« on: April 22, 2005, 02:35:36 AM »
I have an internal 4images website in the univ. campus, and I want to upload some movies in my gallery,
my question is:
I use URL to add the link in the upload page no direct file upload, the page opens very slowly and it looks like it's downloading or something just to view the uploaded files.
any suggestion to avoid these slowness or catching.

thank you

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: uploading large files
« Reply #1 on: April 22, 2005, 02:41:20 AM »
upload it through FTP ;)
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 jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: uploading large files
« Reply #2 on: April 22, 2005, 03:09:10 AM »
I am doing that, the same thing. It takes alot of time to open videos' page unlike images page
is there any editing in the configaration files to avoid this problem

Offline jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: uploading large files
« Reply #3 on: April 24, 2005, 08:15:41 PM »
I really need your help here,
even if I uploaded big files, it looks like that it takes alot of time to open the page,
I tried to put ftp link instead of direct uploading, the same problem


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: uploading large files
« Reply #4 on: April 24, 2005, 08:57:38 PM »
yes, its a known problem in 4images...there is no really a fix for that...

[EDIT]
I dont know if it will work:
in includes/functions.php find:
Code: [Select]
function get_gallery_image($image_name) {Insert above:
Code: [Select]
function get_imagesize($file)
{
  if (strpos($file_name, '://')) return false;
  return getimagesize($file);
}

Then search for getimagesize and replace all instances with get_imagesize

Also, replace them in details.php and download.php
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 jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: uploading large files
« Reply #5 on: April 25, 2005, 11:03:03 PM »
thank you for your reply, but it didnt work.
I tried adding the function you wrote and replacing the function name with the one you provide.

if it helps, I dont need to provide the user with the size of the file,

thank you


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: uploading large files
« Reply #6 on: April 26, 2005, 12:18:02 AM »
if it helps, I dont need to provide the user with the size of the file,
are u saying that it shows file size of the remote images???
if so, then u should turn it off in includes/constants.php:
Code: [Select]
// Check existence of remote image files.
// If you choose 1, you could get sometimes timeout errors
define('CHECK_REMOTE_FILES', 0);
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 jeddx

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: uploading large files
« Reply #7 on: May 01, 2005, 11:37:42 PM »
thank you V@no, I have really learned alot from you,

The default constant for the CHECK_REMOTE_FILES is 0, I didnt change it.

ok maybe this will help you again to solve my problem,
is there any way to put direct link with out uploading it, I meant without redirecting from my server?

all the thanks to you