Page 1 of 1

Attachment uploading

PostPosted: Sun Jan 20, 2008 4:26 pm
Author: Michalis
Hi Guys,

Well its me again with a few more things that I need advice/help on since
there is alot of knowledgable members here, who may have had simular experiences..

1. http://www.meccano-uk.com

On this site which is my mates who runs a service for meccano lovers, I have installed the integramod 1.4.1 as he like the look of it on my site. We have ran into problems
when uploading large rarred/zipped files thru attachments on posts.
Uploading small files seem to work fine & all the attachment settings seem fine in limit quote. example 5000MB.

On one recent attachment upload he got a an error at top of page.

[code]Warning]

the avaerage size of files he is uploading is 30MB on average.

Also take in mind that he is also doing the attachments with ftp settings inserted for uploading too.

Can anyone kindly point me in the right direction or give advise on a fix for this please or where we are going wrong.


2. http://www.houseofdance.net

On this site which is mine, I dont really have a problem, its more of, if it can be possible. Its along the same lines as before with attachments.

I know its possible to enter ftp details to upload stuff using attachments to a server. ATM I am uploading files to my dedicated server with unlimited bandwidth & certain files go into certain folders.

with using attachment mod all files go into one folder, is it possible to have files u upload using attachment to be placed into certain folders of your choice.

the reason i want to use attachments is that the links are hidden to non members & integramod 1.4.1 does not have a supporting hide mod which we used to have on phpBB2+ before we moved to integramod.


I hope you understand what I have written & I hope you are able to help with any advise.. Thanx for your time in reading...

<img>

Re: Attachment uploading

PostPosted: Sun Jan 20, 2008 9:37 pm
Author: CaNNon
Most of the time it will be controlled in the servers php.ini setup, no matter what you set it too in side the forum you can't pass it.

Edit your sites root .htaccess and add this:
Some sites do block this too, in that case you will need to ask the host.
Code: Select all
# Fix for 2 meg limit in php.ini  (size as needed)php_value upload_max_filesize 50M

Re: Attachment uploading

PostPosted: Mon Jan 28, 2008 12:41 pm
Author: Michalis
Thanx for the reply CaNNon

found out from the hosting provider that they cap a limit for any .scripts using a command to upload files over 20MB

PostPosted: Fri Feb 29, 2008 12:15 pm
Author: Michalis
well we have moved all the sight to a dediscated server & now when we try to upload a file it says "tried to upload empty file"

can anyone advise what this could be & is there any advise on a fix.

<img>

Re: Attachment uploading

PostPosted: Fri Feb 29, 2008 1:47 pm
Author: Helter
check your /path in your db in phpbb_config.
redo your cookies with cookieMOD for your new server and if that fails, check your nameserver.
Often youll be setup for
http://www.yoursite.com and youll get errors if you enter your site through
http://yoursite.com

PostPosted: Sun Mar 09, 2008 1:03 am
Author: Fallen
Now I am having this same issue with uploads of over 5mg. I changed my php.ini to allow up to 50mg. Talk to my host (bluehost) they don't cap it on their end. Then I got to looking into the upload settings in, lets say, the album. It only gives you a total of 99 possible seconds before it times out. Now if your speed sucks on the net. That means it will never actually upload the file before timing out. Making it an empty upload.

How can one change the time out session to allow for say 120 seconds. That should be sufficient time for even dial up. HAHA ok that was bit much.

Re: Attachment uploading

PostPosted: Sun Mar 09, 2008 3:16 am
Author: Helter
I dont think there is a time limit for pafile or attachment mod. I cant think of any image other than possibly a large .bmp that could take that long even on dial up.

Re: Attachment uploading

PostPosted: Sun Mar 09, 2008 2:11 pm
Author: Fallen
I took a screenshot. Note that I have this disabled because I cant seem to get it to work. I have triple checked the settings in the install file, and made sure the chmodds are all right.

Re: Attachment uploading

PostPosted: Sun Mar 09, 2008 2:12 pm
Author: Fallen
Ok I tried to upload to this post the screen shot. Got this error.

Warning: passthru() has been disabled for security reasons in /home/importal/public_html/forum/attach_mod/includes/functions_thumbs.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/importal/public_html/forum/attach_mod/includes/functions_thumbs.php:215) in /home/importal/public_html/forum/includes/functions.php on line 1915

PostPosted: Sun Mar 09, 2008 2:13 pm
Author: Fallen
how strange it double posted. Must have been that error

Re: Attachment uploading

PostPosted: Sun Mar 09, 2008 3:57 pm
Author: CaNNon
It only gives you a total of 99 possible seconds before it times out. Now if your speed sucks on the net.


I think this is referring to seconds of inactivity and not how long it's taking to upload.

Re: Attachment uploading

PostPosted: Wed Mar 19, 2008 2:51 pm
Author: obiku
Uploading files with a php .script are restricted by 2 things.
One is the maximum filesize (this is set in the php.ini)
Two is the maximum time the server is aloud to run a .script (I thought this is also set in the php.ini)

Both have to be set carefully, otherwise the server can hang.

Re: Attachment uploading

PostPosted: Thu Mar 20, 2008 10:50 am
Author: GoatBoy
"obiku";p="32261" wrote:Uploading files with a php .script are restricted by 2 things.
One is the maximum filesize (this is set in the php.ini)
Two is the maximum time the server is aloud to run a .script (I thought this is also set in the php.ini)

Both have to be set carefully, otherwise the server can hang.


max_execution_time 30 30 is set in the php.ini file.

on my home server i set the php.ino max execution time it would take a person to upload a 700mb file at the upload speed of 1Mb. so if you use the php upload function then it will execute for however long it is set for. if there is any way to use ftp i would use that.

Re: Attachment uploading

PostPosted: Thu May 01, 2008 1:18 pm
Author: Fallen
"GoatBoy";p="32279" wrote:max_execution_time 30 30 is set in the php.ini file.

on my home server i set the php.ino max execution time it would take a person to upload a 700mb file at the upload speed of 1Mb. so if you use the php upload function then it will execute for however long it is set for. if there is any way to use ftp i would use that.


What time would that be? I am a lazy math person. <img>