secureloadsSecure Downloads Area Software

Forum

You are not logged in.

#1 2007-11-09 14:07:44

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Not uploading a 15.4mb zip file

When I try to upload a file 15mb to one of the folders it seems to finish the upload but the file is not in the folder - the field where the path is then puts (in red text) this field should not be empty?
What is happening and how can I fix it?

Offline

 

#2 2007-11-12 07:35:19

algis
Administrator
Registered: 2006-01-09
Posts: 805
Website

Re: Not uploading a 15.4mb zip file

Hello,
this error indicate that the file is bigger than allowed for upload at your server.

If you are on Unix hosting, you can increase this level - could you please create a file named ".htaccess" in the main Secureloads program folder and enter this code there:

<IfModule mod_php5.c>
  php_value upload_max_filesize "32M"
  php_value post_max_size "32M"
</IfModule>
<IfModule mod_php4.c>
  php_value upload_max_filesize "32M"
  php_value post_max_size "32M"
</IfModule>

this will extend the upload limit to 32 Mb. Please set it to a bigger value if needed.

Offline

 

#3 2007-11-12 11:27:02

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Not uploading a 15.4mb zip file

Thanx for your reply

Firstly there seem to be a problem with all the links that come in the email with your reply, the all give the error 'Bad request. The link you followed is incorrect or outdated.'
Thought you should know.



And secondly is it possible for me to pay you to implement a folder sizes facility, as my client wants his office to know what sizes are going to be downloaded, without having to open the folder and add all the files. Problem is there are going to be loads of files that will change regularly.

Found this code form a forum but I am not allowed to put the link in this forum as it is preventing me from allowing it, i don not write PHP, and i hope yu are not offended with any suggestions I am making - don't know if it helps 

<?php
$path = "gal";
echo "Folder $path = ".filesize_r($path)." bytes";

function filesize_r($path){
  if(!file_exists($path)) return 0;
  if(is_file($path)) return filesize($path);
  $ret = 0;
  foreach(glob($path."/*") as $fn)
    $ret += filesize_r($fn);
  return $ret;
}
?>

Last edited by amanuensis (2007-11-12 11:32:49)

Offline

 

#4 2007-11-12 14:56:55

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Not uploading a 15.4mb zip file

Just discovered that the .htaccess file you recomended to me will not work, I have been told as my PHP has to be modular and at the moment it is CGI - I think I have that right, I run a managed server and they inform me that trying to upload large files via php will make it very vunerable - if only for the time the script is running, is this the case with Secureloads? or is there something i am not aware of that keeps it secure.?

Last edited by amanuensis (2007-11-12 15:02:37)

Offline

 

#5 2007-11-14 09:30:31

algis
Administrator
Registered: 2006-01-09
Posts: 805
Website

Re: Not uploading a 15.4mb zip file

Hello,
yes this .htaccess thing will work only if PHP is installed as Apache module rather than CGI, sorry not mentioning it. If it is CGI on your server, you will need to update the main "php.ini" file

Offline

 

#6 2007-11-14 11:01:09

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Not uploading a 15.4mb zip file

Could you please reply to the post below, many thanks



Thanx for your reply

Firstly there seem to be a problem with all the links that come in the email with your reply, the all give the error 'Bad request. The link you followed is incorrect or outdated.'
Thought you should know.



And secondly is it possible for me to pay you to implement a folder sizes facility, as my client wants his office to know what sizes are going to be downloaded, without having to open the folder and add all the files. Problem is there are going to be loads of files that will change regularly.

Found this code form a forum but I am not allowed to put the link in this forum as it is preventing me from allowing it, i don not write PHP, and i hope yu are not offended with any suggestions I am making - don't know if it helps 

<?php
$path = "gal";
echo "Folder $path = ".filesize_r($path)." bytes";

function filesize_r($path){
  if(!file_exists($path)) return 0;
  if(is_file($path)) return filesize($path);
  $ret = 0;
  foreach(glob($path."/*") as $fn)
    $ret += filesize_r($fn);
  return $ret;
}
?>

Offline

 

#7 2007-11-15 08:10:44

algis
Administrator
Registered: 2006-01-09
Posts: 805
Website

Re: Not uploading a 15.4mb zip file

I will add this "Folder Size" option in the nearest update, hope it comes this week

Offline

 

#8 2007-11-15 13:42:35

algis
Administrator
Registered: 2006-01-09
Posts: 805
Website

Re: Not uploading a 15.4mb zip file

Hello,
pleased to let you know that the latest update now allows to show the full folder size. Please update your installation and make sure that you enable it in

Configuration >> System Settings >> Filesystem >> Enable Recursive Folder Size

Offline

 

#9 2007-11-15 14:06:35

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Not uploading a 15.4mb zip file

Many thanks - I could not ask for more
i am still getting 'Bad request. The link you followed is incorrect or outdated' when I click the link to the forum from within the email i am sent.


Do I have to overwrite all of the files, with the ones in 2.14

Last edited by amanuensis (2007-11-15 14:10:47)

Offline

 

#10 2007-11-19 00:07:25

amanuensis
Member
Registered: 2007-02-01
Posts: 91

Re: Not uploading a 15.4mb zip file

Do I have to overwrite all the existing files with the new ones?

Can you tell me only the names of the files I have to overwrite, as I have already customised  some of the feature already and want to avoid having to strip out the code again.


Thank You

Last edited by amanuensis (2007-11-19 00:17:47)

Offline

 

#11 2007-11-19 20:41:50

algis
Administrator
Registered: 2006-01-09
Posts: 805
Website

Re: Not uploading a 15.4mb zip file

Hello,
usually we recommend to re-upload everything. As you have already customized the code, here is the list of changed files from version 2.1.3 to 2.1.4:

sld/base/_init.php
sld/base/code/core/appSettings.php
sld/base/code/core/managers/fileManager.php
sld/lang/eng.php
sld/packages/common/files/list/index.php
sld/version.txt
sld/hclib/_init.php
sld/hclib/application/packages/admin/groups/edit/templates/UsersOfGroupList.php

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson