https://www.icyphoenix.com/viewtopic.php?f=26&t=810
-----------------------------------
lefty74
Tue 09 Jan, 2007 01:29

FAP SUPPORT - Upload Problems
-----------------------------------
hello, I copied extracts from the original post over at MG.com

To enable users to upload files higher than 2MB I have to have nuffload enabled. Is my assumption correct that the standard resize function uploads the picture and then resizes it whereas nuffload resizes (somehow) it before or while uploading it? I do not get it otherwise...( :wacko_03:  :blink_01: ) 
I do not mind this but am (positively) surprised that I can upload more than the upload_max_filesize of 2MB (according to phpinfo) with nuffload.
The maximum filesize set in the ACP is about 5MB as there are many users that have high resolution cameras but do not know how to resize an image.

To cut to the chase, my questions from my previous post I put in red. :)

thanks very much
lefty74

[size=9]nice selection of smilies btw, mind if I maybe "borrow" some sometime in the future?[/size]

[quote=lefty74]
Thu 28 Dec, 2006 01:19

Re: Upload Problems
-----------------------------------
hope you have had a nice christmas everyone.

{text edited out, refers to the original post of the author having upload problems}, I can upload pics of about 2mb and then get

[quote]No pictures selected for upload or unknow error[/quote]

with nuffload I can upload a pic higher than 2mb. {text edited out - was solved in the meantime}

----

[color=red]Is there a code that I can include that gives me the upload limit from the server without having to go to the host so I know not to set it higher than that in the acp config?

This is what was added by another mod (Contact Form by marcus.smith) I have installed 
[code](@phpversion() >= '4.0.0') ? ini_get('upload_max_filesize')  get_cfg_var('upload_max_filesize')[/code]
looking at the phpinfo I have this 
upload_max_filesize	2M 

but since nuffload has no problem with the files larger than 2MB is there another limit I need to look for?[/color]

p.s. i checked the chmod, they are set as per install


if there is anything that does not make sense please shout.

grateful for your help[/quote]


-----------------------------------
Mighty Gorgon
Tue 09 Jan, 2007 22:24

Re: Upload Problems
-----------------------------------
Nuffload uses Perl to manage files, that's because some PHP limits may be overridden...

I don't know if there is a way to override PHP limit... :roll:

What I suggest is to teach your users how to reduce their images before posting them... it's not suitable to have 4 MB images in the album, because it will take forever to load them... add this kind of hi res pics as a zip file instead... :roll:

That is what I would do.

There are many free software which may reduce one (or many at once) image to reduce its size... :roll:

[size=10]P.S.: you can grab all the smileys by just saving the full smiley page... :wink:[/size]


-----------------------------------
lefty74
Wed 10 Jan, 2007 00:18

Re: Upload Problems
-----------------------------------
[quote user="Mighty Gorgon" post="6740"]
it's not suitable to have 4 MB images in the album, because it will take forever to load them... add this kind of hi res pics as a zip file instead... :roll:
[/quote]

Thanks MG but I am using the resize function, i.e. the pictures although initially 4Mb in size will be resized and compressed to about 150kb.  :mryellow: 

I will stick to the nuffloader then as that makes the uploading of larger pictures for resizing possible without the 2mb cutoff.

[quote user="Mighty Gorgon" post="6740"]P.S.: you can grab all the smileys by just saving the full smiley page... :wink:[/quote]

Thanks  :up:


-----------------------------------
blacmale
Wed 10 Jan, 2007 19:51

Re: Upload Problems
-----------------------------------
hello 

i am still having this problem.  steps i took so far, i removed the htaccess, this didn't work. i used a earlier htaccess, this didn't work either.  with or with out Nuffload, i still have issues loading pics with hi resolution.  it will actually saves the original pic in my upload folder but it doesn't resize and show in my forum. why is that?


where is this code that the previous post was referring to with the max size? what file is this code located in? also what exactly is GD?

i really need this to work, it's holding up the launch of the forum. i love this mod.


any help would be appreciated


-----------------------------------
lefty74
Thu 11 Jan, 2007 22:32

Re: Upload Problems
-----------------------------------
AFAIK, You will need to have the GD library installed for image resizing. If you go to the ACP-Photo Album-Configuration, have a look at the GD info and see whether it is enabled and what.

[quote]where is this code that the previous post was referring to with the max size?[/quote]
What code are you referring to?


-----------------------------------
blacmale
Fri 12 Jan, 2007 07:07

Re: Upload Problems
-----------------------------------
(@phpversion() >= '4.0.0') ? ini_get('upload_max_filesize')  get_cfg_var('upload_max_filesize') 

this what i was referring to.

this is what my GD info says does this mean it is enabled? also what is GD? what does it stand for? thanks

[img align=left]http://biggerandbetterthangs.com/GDinfo.jpg[/img]


-----------------------------------
lefty74
Sat 13 Jan, 2007 00:37

Re: Upload Problems
-----------------------------------
thats what mine looks like as well. I did have troubles with my thumbnails (and worse) when my hosts installed the mod evasive(?) on the server. All it needed was a little tweaking (apparently) and then it worked fine again.
Have your hosts at all yet? 

In any case I attach a copy of my ACP Thumbnail settings for your info.

wrt to the code it is in no file. I had that part from another mod I have installed but I am sure you can easily include it in e.g. admin/admin_album_config_upload.php to show you what the maximum filesize is you can upload. For some odd reason this maximum does not apply for nuffload on my board, or at least so it seems.

Sorry, I am not much help with your problem. Unfortunately, I do not know much about programming at all...

wrt to what GD Graphics library is, maybe this helps
http://en.wikipedia.org/wiki/GD_Graphics_Library


-----------------------------------
blacmale
Tue 16 Jan, 2007 03:26

Re: Upload Problems
-----------------------------------
[quote user="lefty74" post="7305"]thats what mine looks like as well. I did have troubles with my thumbnails (and worse) when my hosts installed the mod evasive(?) on the server. All it needed was a little tweaking (apparently) and then it worked fine again.
Have your hosts at all yet? [/quote]

what do you mean? I have to speak to my website host to see if they have some type of block?


-----------------------------------
lefty74
Tue 16 Jan, 2007 12:45

Re: Upload Problems
-----------------------------------
yes, just ask them to see whether any of the server settings might interfere. For me, everything was working fine and one day I had problems with thumbnails loading and actually got permission denied messages so I contacted my host, they looked into it and it was something they had installed. They tweaked it a bit and now everything works again...

I am not saying this is the case with you but it certainly is a possibility to explore...


-----------------------------------
blacmale
Thu 18 Jan, 2007 17:10

Re: Upload Problems
-----------------------------------
[quote user="lefty74" post="7567"]yes, just ask them to see whether any of the server settings might interfere. For me, everything was working fine and one day I had problems with thumbnails loading and actually got permission denied messages so I contacted my host, they looked into it and it was something they had installed. They tweaked it a bit and now everything works again...

I am not saying this is the case with you but it certainly is a possibility to explore...[/quote]



Lefty you've been a big help.  I did what you suggested and that was the case. My host told me that my php Memory was low. they changed it to 32mb and it uploads fine with the regular setup. not really working with Nuffload but that's ok. atleast one works.

know i have another issue. lol. regular users after they upload a pic they can't delete it or edit it. access seems to be denied. gotta find out why. don't see anything in the Control Panel. maybe someone already had this issue so i'm going to look around.


-----------------------------------
lefty74
Fri 19 Jan, 2007 01:24

Re: Upload Problems
-----------------------------------
Actually, there is an option in the ACP.

If you go to
Photo Album - Configuration - Personal Galleries

There is a line that says
Personal gallery can be moderated by owner  	Yes  No

If this is set to Yes, they should be able to edit/delete their pictures

Edit:
That only works for the Personal Galleries tho. I just reread your post and I guess you are talking about pictures in the public gallery, there only moderators or admins (afaik) can edit/delete pictures.


-----------------------------------
Tom
Fri 19 Jan, 2007 08:54

Re: Upload Problems
-----------------------------------
I also have the problem, that I cannot upload pictures. Whenever I try to upload any image (which is well within the size limit in any possible way) I also get the error message:
[quote]No pictures selected for upload or unknown error[/quote]

[b]What did I do?[/b]
I've updated my (very) old FAP to FAP 1.4.0a, by removing the old FAP (which worked just fine) and installing the new FAP.

[b]Which setup do I run?[/b]
Windows XP with IIS 5
PHP 4.4.4
php max upload size is 16M
GD 2.0.28
MySQL 4.1.22

[b]What did I try to solve the problem?[/b]
Removing .htaccess (which doesn't do much on IIS anyway) - no effect
granting "everyone" full control permissions on the album_mod/upload folder - no effect
Checking MG.com for help - no effect
banging my head against the wall - headache

All in all i was unable to find anything that could help me solve the weird problem.
Does anyone have any idea what the cause could be?


-----------------------------------
blacmale
Fri 19 Jan, 2007 15:13

Re: Upload Problems
-----------------------------------
[quote user="lefty74" post="7727"]Actually, there is an option in the ACP.

If you go to
Photo Album - Configuration - Personal Galleries

There is a line that says
Personal gallery can be moderated by owner  	Yes  No

If this is set to Yes, they should be able to edit/delete their pictures

Edit:
That only works for the Personal Galleries tho. I just reread your post and I guess you are talking about pictures in the public gallery, there only moderators or admins (afaik) can edit/delete pictures.[/quote]

Once again Lefty you've help me to solve my problem.  Funny thing is that was so easy, i didn't realize that i had it set to not moderator their own galleries.  It was the Personal Galleries that I was talking about.  Your suggestion once again did the trick.  Thank you. I was basically waiting for this to be fixed so that I can finally launch my forum.

Once again Thank you and have a good weekend.


-----------------------------------
Artie
Fri 19 Jan, 2007 18:26

Re: Upload Problems
-----------------------------------
Yes lefty, thanks for helping out  :up:


-----------------------------------
Artie
Fri 19 Jan, 2007 18:44

Re: Upload Problems
-----------------------------------
Tom, I too had 1.2.3 running without problems....then after upgrading to 1.4.0 most of my problems were with thumbnails/pics displaying.
This was all on my local testing server, but I had no problems on my remote live server.....which seems a little odd.

Your not being able to upload ANY PICS is strange.... 

Is this with both upload options (Standard or Nuffload) ?
Can you upload avatars ?


-----------------------------------
Tom
Fri 19 Jan, 2007 21:33

Re: Upload Problems
-----------------------------------
Avatar upload was worth a shot... but it works just fine. So no problem there.

And no, I can't upload any pictures at all in FAP. Nuffload throws alot of errors, but that might just be a problem with my setup. I'm not sure Perl scripts will run right away, but I haven't looked into that yet. I'd like the standard upload to work first bofore I try the fancy Nuffload :mrblue: 

Oh and I updated from FAP 1.0.3 or something like that. VERY old version. ;)


-----------------------------------
Mighty Gorgon
Tue 23 Jan, 2007 02:15

Re: Upload Problems
-----------------------------------
[quote user="Tom" post="7767"]Avatar upload was worth a shot... but it works just fine. So no problem there.

And no, I can't upload any pictures at all in FAP. Nuffload throws alot of errors, but that might just be a problem with my setup. I'm not sure Perl scripts will run right away, but I haven't looked into that yet. I'd like the standard upload to work first bofore I try the fancy Nuffload :mrblue: 

Oh and I updated from FAP 1.0.3 or something like that. VERY old version. ;)[/quote]
As I said you in our private chat, the problem should be related to your Windows + IIS server.

Unfortunately I didn't test the album in all the possible environments, and I'm quite sure that if you try the package on Apache you won't have any problem. :roll:

I'm sorry about that... I'll try to figure out the reason why the fields are not passed through HTTP.


