ClanKiller.com
http://forums.clankiller.com/

Cannot upload avatar
http://forums.clankiller.com/viewtopic.php?f=9&t=1087
Page 1 of 2

Author:  RB [ Fri Dec 31, 2004 6:45 am ]
Post subject:  Cannot upload avatar

I allways get message that img must be less than 12kb in size. This time mine were allways about 2-3kB.

Author:  Satis [ Fri Dec 31, 2004 7:10 am ]
Post subject: 

ok, I verified that it's a problem. The form input page is fine, though, and I can't find where the hell the image procesing is done in the code after you submit. It has to be there that the bug is. If you can find me the file, I'll fix the problem. I know you have a phpbb forum, and the avatar stuff is base-forum material. Conveniently enough, I've been busting my ass working on some php crap lately, including image upload and validation. So once I find where this damn code is hiding at, it shouldn't be too hard to fix.

Author:  RB [ Sat Jan 01, 2005 8:04 am ]
Post subject: 

Ehm, that's not my Forum. I just "keep it". I'll have my own forum, wroten by my own hands soon. But, don't worry. CK is still my nr.1 so I'll keep visiting and would link it probably. By the way, maybe I can grab some moderator here. :)

Try in includes/usercp_avatar.php with function user_avatar_upload(). I'm not sure what could cause such problem. Did your system admins upgraded to new version of php (i.e.5)? Or you have done some manual upgrades or something?

Btw now "view user profile" not working on my Forum. Dunno why! (another 2.0.11 expoit??) My link now is too slow and I'll have to wait one week before I get good access to these files. That suck!

Author:  Satis [ Sat Jan 01, 2005 11:25 am ]
Post subject: 

gah....thanks, that looks like the page alright. And, of course, it's mostly gobbledy-gook. I'll try to sort through it and figure out where the problem is.

As far as your own issues...sorry to hear it. I'm actually seriously thinking about killing off the forum, installing 2.0.11, and installing just the attachment mod with the default theme. Maintaining this forum is a pain in the ass with all the custom crap.

Author:  Rinox [ Sun Jan 02, 2005 10:57 am ]
Post subject: 

Erhm, maybe it was already established during the technical mumbu-jumbo above, but I can't upload simple .jpg attachments either anymore. Tried yesterday, tried today, no luck.

Author:  Satis [ Mon Jan 03, 2005 6:33 am ]
Post subject: 

erm...attachments should work. The issue is with avatars. Is that what you mean?

Author:  Rinox [ Mon Jan 03, 2005 3:31 pm ]
Post subject: 

nopez...I mean regular attachments. And regular, small jpg's that aren't in use by any other program. I tried it again in this topic to be sure, and got the same message as before:

"Upload Error: Could not upload Attachment to ./files/schooiers.jpg."

schooiers.jpg being the pic I tried to attach. :)

What now radioactive man?

Author:  Satis [ Tue Jan 04, 2005 12:22 am ]
Post subject: 

what a pain in my ass.

I have a sneaking suspicion I know what's going on, but it'll be a pain to be sure. Damnit. I'll let you know when I get the urge to spend that kind of time.

Author:  Satis [ Tue Jan 04, 2005 2:47 pm ]
Post subject: 

test


File uploads fixed.

Author:  Rinox [ Tue Jan 04, 2005 4:22 pm ]
Post subject: 

Thank you kindly mister. Funny pic, too.

Author:  Rinox [ Wed Jan 05, 2005 5:40 pm ]
Post subject: 

Sorry to bother you, but I tried to upload again in the general games forum and no-go. Tried it again here to make sure again, same stuff as before. :(

Author:  Satis [ Wed Jan 05, 2005 6:11 pm ]
Post subject: 

test

fixed again. :( Too bad it fucks up session variables on one of my project. Now to figure out why that's the case.

Author:  Rinox [ Thu Jan 06, 2005 3:47 am ]
Post subject: 

test nr. 2...


seems to work, w00t. Now go fix those session variables (whatever the hell that is ;) ) buoy!

Author:  RB [ Thu Jan 06, 2005 4:39 am ]
Post subject: 

Avatar upload works!

Author:  Satis [ Thu Jan 06, 2005 9:12 am ]
Post subject: 

testes

yay, I fixed session vars without breaking http uploads. yay me.

Issue resolved as far as I'm concerned. If anyone runs into anything else, let me know please.

oh, for anyone that cares, I had to include a custom php.ini file since my provided decided to make the /tmp folder no longer world writeable. This was prompted by a bad monkey worm.

Code:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/edited/

; Maximum allowed size for uploaded files.
upload_max_filesize = 5M

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = "/www/edited/

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/