Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Forum News, Suggestions and Discussion

 
 
Thread Tools Display Modes

 
Reply
Posted 2004-12-06, 03:01 PM in reply to Demosthenes's post starting "Well, I tried to upload a couple of..."
That's strange. What's the error, and what file types did you attempt to upload?

I just tried it; seems to work just fine.
http://www.picaroni.com/62904.jpg
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrow
 
 
Chruser
 



 
Reply
Posted 2004-12-06, 03:10 PM in reply to Chruser's post starting "That's strange. What's the error, and..."
I tried a jpeg file, didnt work.
Old
Profile PM WWW Search
Sovereign enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzSovereign enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Sovereign
 



 
Reply
Posted 2004-12-06, 03:22 PM in reply to Chruser's post starting "That's strange. What's the error, and..."
Fixed it. Apparently, Mozilla gives jpg/jpeg files mime type image/jpeg, while IE names them image/pjpeg. I just had to add the case. This is to prevent other file types from (easily) being uploaded. In other words, you can't just rename .exe into .jpg to store it.
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrow
 
 
Chruser
 



 
Reply
Posted 2004-12-06, 03:46 PM in reply to Chruser's post starting "Fixed it. Apparently, Mozilla gives..."
Just a couple of other things you might want to know:
1.) It doesn't show a thumbnail of my saved pictures to me.
2.) It saves the picture twice. For instance, it saved 13.jpg as 13.jpg and 12.jpg. It did this a couple of other times as well, with other pictures.
Old
Profile PM WWW Search
Demosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to be
 
Demosthenes
 



 
Reply
Posted 2004-12-06, 04:23 PM in reply to Demosthenes's post starting "Just a couple of other things you might..."
Eh I'm gonna sign up.
Old
Profile PM WWW Search
HandOfHeaven seldom sees opportunities until they cease to beHandOfHeaven seldom sees opportunities until they cease to beHandOfHeaven seldom sees opportunities until they cease to beHandOfHeaven seldom sees opportunities until they cease to be
 
 
HandOfHeaven
 



 
Reply
Posted 2004-12-07, 10:26 AM in reply to Demosthenes's post starting "Just a couple of other things you might..."
It shouldn't save pictures twice if you click only once. If you click twice, that might be another story. Since all images are in the root directory (easy to remember), I wrote a script that increments the file name with a number in order to prevent overwriting.
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrow
 
 
Chruser
 



 
Reply
Posted 2004-12-07, 02:00 PM in reply to Chruser's post starting "It shouldn't save pictures twice if you..."
It let me upload a text file renamed as a jpg - http://www.picaroni.com/text_renamed_as_jpg.jpg

..Although, it DID change the text into this:

Quote:
<br />
<b>Warning</b>: imagecreatefromstring(): Data is not in a recognized format. in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>47</b><br />
<br />
<b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>48</b><br />
<br />
<b>Warning</b>: imagesy(): supplied argument is not a valid Image resource in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>49</b><br />
<br />
<b>Warning</b>: imagecreatetruecolor(): Invalid image dimensions in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>50</b><br />
<br />
<b>Warning</b>: imagecopyresampled(): supplied argument is not a valid Image resource in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>51</b><br />
<br />
<b>Warning</b>: imagejpeg(): supplied argument is not a valid Image resource in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>93</b><br />
<br />
<b>Warning</b>: imagedestroy(): supplied argument is not a valid Image resource in <b>/home/zelaron/domains/picaroni.com/public_html/showfull.php</b> on line <b>105</b><br />
Also, the standard SQL injection trick didn't work ("or 1=1", you know the drill) so that's good, and all bad file types seem to get the error-in-the-file treatment, though it still uploads it without errors..

-----

Although, I just noticed that there seems to be no way to log out short of deleting your own cookies.

-----

I'll mention also that it allows you to sign up with a just a space for the email field, which I assume you want to be valid. (Unless you figure it's not a problem if they can't retrieve their password if they give a space for the email)

Also, I love the PORKY PORK messages

Last edited by BlueCube; 2004-12-07 at 02:13 PM.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2004-12-07, 02:35 PM in reply to BlueCube's post starting "It let me upload a text file renamed as..."
Thanks for helping me bug test Picaroni everyone. BlueCube, about the email part, I'll mess with syntax to get some form of checking to work. As-is, there isn't even a retrieve lost password feature, so it doesn't matter greatly. I will definitely take care of the logout page.

And as for the upload part, I have directed my safety measures at the actual displayment part. Even if someone could manage to upload a php file with functions that delete all files on the site, what good would it do them if it couldn't be run in the first place?

(And for the record, the images aren't really placed in the root)
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
Old
Profile PM WWW Search
Chruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrowChruser never puts off to tomorrow what can be done the day after tomorrow
 
 
Chruser
 



 
Reply
Posted 2004-12-07, 02:47 PM in reply to Chruser's post starting "Thanks for helping me bug test Picaroni..."
Signed up.

You should put Zelaron in the "Links" content.
Old
Profile PM WWW Search
kaos is an uncelestial body of masskaos is an uncelestial body of masskaos is an uncelestial body of mass
 
 
kaos
 



 
Reply
Posted 2004-12-07, 03:59 PM in reply to Chruser's post starting "Thanks for helping me bug test Picaroni..."
You might want to make it only allow image file types when it goes to browse files to upload. Just makes it easier for people (like me) who have tons of crap mixed together to find image files.
Old
Profile PM WWW Search
Xenn shows clear signs of ignorance and confidence; the two things needed to succeed in lifeXenn shows clear signs of ignorance and confidence; the two things needed to succeed in life
 
Xenn
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:22 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.