Attachment uploading

Support for IntegraMOD 141

Moderator: Integra Moderator

Attachment uploading

PostAuthor: Michalis » Sun Jan 20, 2008 4:26 pm

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>
Last edited by Michalis on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: Attachment uploading

PostAuthor: CaNNon » Sun Jan 20, 2008 9:37 pm

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
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: Michalis » Mon Jan 28, 2008 12:41 pm

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
Last edited by Michalis on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

PostAuthor: Michalis » Fri Feb 29, 2008 12:15 pm

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>
Last edited by Michalis on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://www.houseofdance.net/images/Banners/HoDbanner2008.gif[/img]
User avatar
Michalis
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 16, 2007 5:37 pm
Cash on hand: 0.00
Location: UK

Re: Attachment uploading

PostAuthor: Helter » Fri Feb 29, 2008 1:47 pm

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
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Fallen » Sun Mar 09, 2008 1:03 am

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.
Last edited by Fallen on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Fallen
Members
Members
 
Posts: 39
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:54 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: Helter » Sun Mar 09, 2008 3:16 am

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.
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Attachment uploading

PostAuthor: Fallen » Sun Mar 09, 2008 2:11 pm

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.
You do not have the required permissions to view the files attached to this post.
Last edited by Fallen on Sun Mar 09, 2008 2:13 pm, edited 1 time in total.
User avatar
Fallen
Members
Members
 
Posts: 39
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:54 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: Fallen » Sun Mar 09, 2008 2:12 pm

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
Last edited by Fallen on Sun Mar 09, 2008 2:14 pm, edited 1 time in total.
User avatar
Fallen
Members
Members
 
Posts: 39
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:54 pm
Cash on hand: 0.00

PostAuthor: Fallen » Sun Mar 09, 2008 2:13 pm

how strange it double posted. Must have been that error
Last edited by Fallen on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Fallen
Members
Members
 
Posts: 39
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:54 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: CaNNon » Sun Mar 09, 2008 3:57 pm

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.
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: obiku » Wed Mar 19, 2008 2:51 pm

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.
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Attachment uploading

PostAuthor: GoatBoy » Thu Mar 20, 2008 10:50 am

"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.
Last edited by GoatBoy on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Boomer Sooner
User avatar
GoatBoy
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 16, 2008 5:46 pm
Cash on hand: 0.00

Re: Attachment uploading

PostAuthor: Fallen » Thu May 01, 2008 1:18 pm

"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>
Last edited by Fallen on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Fallen
Members
Members
 
Posts: 39
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 8:54 pm
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]