4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: jeddx on April 22, 2005, 02:35:36 AM

Title: uploading large files
Post by: jeddx 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
Title: Re: uploading large files
Post by: V@no on April 22, 2005, 02:41:20 AM
upload it through FTP ;)
Title: Re: uploading large files
Post by: jeddx 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
Title: Re: uploading large files
Post by: jeddx 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

Title: Re: uploading large files
Post by: V@no 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
Title: Re: uploading large files
Post by: jeddx 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

Title: Re: uploading large files
Post by: V@no 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);
Title: Re: uploading large files
Post by: jeddx 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