Pafiledb showing 0 byte size when adding files through URLs

Support for IntegraMOD 141

Moderator: Integra Moderator

Pafiledb showing 0 byte size when adding files through URLs

PostAuthor: golgoth » Sun Aug 30, 2009 1:05 pm

I just noticed that pafiledb doesn't check the filesize if you choose to add it through an URL and not through direct uploading.
Now all my files are 0 bytes... is there a way to enable the check?

Thanks

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: Helter » Mon Aug 31, 2009 8:57 am

it does not check file size because the files are not stored locally. It has no way to check the files size and since it is not using space on your server, there is no need other than for general information.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Mon Aug 31, 2009 11:15 am

I asked for it since i use remote URLs to add files that i can only upload through ftp because they are too big... i suppose i have to add filesize manually through phpmyadmin then, right?

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: .QUACK.Major.Pain » Tue Sep 01, 2009 6:43 pm

Not sure, but isn't there a 2MB cap?

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: Helter » Tue Sep 01, 2009 10:03 pm

2 megs is the default upload size of most php packages set in the php.ini
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Tue Sep 01, 2009 10:42 pm

I can upload files < 8 MB, but for the bigger ones i have to use ftp.
And since i have many of them, this is why i asked.

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: Helter » Wed Sep 02, 2009 7:08 am

are you on shared hosting, or do you have access to your php.ini?

if so, what are the settings for these?

post_max_size =

upload_max_filesize =
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Wed Sep 02, 2009 7:33 am

Shared hosting, no way to change the maximum upload limit <img>

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: .QUACK.Major.Pain » Wed Sep 02, 2009 1:10 pm

Look in ACP>Tools> PHP Info

And find the 2 above lines and it tells you your max limits.

I am 128 M - I guess that is MB?
Probably varies with hosts.
I have unlimited storage, but limited to FTP.

I have to use FTP also for large files.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: Helter » Wed Sep 02, 2009 6:45 pm

try adding this to your config.php

ini_set("memory_limit", "200000000");
ini_set("post_max_size", "64M");

so it should look like this (but with your own db info)

Code: Select all
<php>
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Thu Sep 03, 2009 11:59 am

I tried with a 25 MB file: pafiledb says that the file has been correctly uploaded, but there's no trace of it in my downloads... with a 7 MB file everything's right.

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: Helter » Thu Sep 03, 2009 11:03 pm

did you check the "Maximum Filesize" in acp/Download/Configuration/ ?
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Thu Sep 03, 2009 11:33 pm

Yep, i set it to unlimited.
Probably my hosting service doesn't allow to increase the max upload size in any way... but i just saw that now the limit is 20M, so i will be able to upload most of my files without having to use remote URLs <img>

Thanks anyway

P.S. Hey JWI, did you read my question about thumbnails [url=http]here[/url]?

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: .QUACK.Major.Pain » Fri Sep 04, 2009 3:50 am

Using "0" may not work on your host.
Our old host it worked, but our new host, it didn't and we had to select a higher number for max file size, and seems to work now.

Try setting a higher number and test it.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Pafiledb showing 0 byte size when adding files through U

PostAuthor: golgoth » Fri Sep 04, 2009 10:46 am

Tried, but no results... np anyway, 20M are enough for most of the files i have to upload

golgoth
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 20, 2009 10:29 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]