Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty and Uploading files

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
lean4huskytop
Smarty Regular


Joined: 19 Aug 2003
Posts: 41

PostPosted: Wed Dec 31, 2003 7:27 pm    Post subject: Smarty and Uploading files Reply with quote

I would like to upload a picture file and at the same time I would like to resize it and check for whether its a jpeg, gif or other...and only accept the gif or jpeg

please help Idea

Paul
Back to top
View user's profile Send private message
tk
Smarty Regular


Joined: 31 Oct 2003
Posts: 49
Location: London, UK

PostPosted: Wed Dec 31, 2003 7:57 pm    Post subject: Re: Smarty and Uploading files Reply with quote

lean4huskytop wrote:
I would like to upload a picture file and at the same time I would like to resize it and check for whether its a jpeg, gif or other...and only accept the gif or jpeg

please help :idea:

Paul



This has absolutely nothing to do with Smarty itself, but PHP.. but...

Check php.net for getimagesize(), $_FILES, move_upload_file() etc etc etc.. google also, there's _hundreds_ of pieces of infomation about regarding this matter.. all of which will cover it better than a "quick n dirty" explanation here.

Hope this info helps (a bit?)



Regards,

tk
_________________
Certified Code Junkie(tM)
Copyleft (L) two thousand and now, tk
Back to top
View user's profile Send private message Visit poster's website
lean4huskytop
Smarty Regular


Joined: 19 Aug 2003
Posts: 41

PostPosted: Wed Dec 31, 2003 8:27 pm    Post subject: hey Reply with quote

you only posted 11 messages on here.
I am not going to listen to you Twisted Evil

Arrow

Next please!
Back to top
View user's profile Send private message
tk
Smarty Regular


Joined: 31 Oct 2003
Posts: 49
Location: London, UK

PostPosted: Wed Dec 31, 2003 8:56 pm    Post subject: Re: hey Reply with quote

lean4huskytop wrote:
you only posted 11 messages on here.


Hmm.. meaning? I spend more time coding PHP, admining servers and running a business than I do posting here =)

My current Smarty project (SMUP) does exactly what you're asking.. SMUP == SMart UPloader and is a complete PHP / Smarty based upload manager based on accounts or anonymous uploads.. MySQL table manipulation for adding / modifying new fields... complete SysOp backend etc. The customer seems more than happy with things so far with its progress =)

Quote:
I am not going to listen to you :twisted:

:arrow:

Next please!


Your choice kid.. happy hunting ;)



Regards,

tk
_________________
Certified Code Junkie(tM)
Copyleft (L) two thousand and now, tk
Back to top
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Dec 31, 2003 9:37 pm    Post subject: Re: hey Reply with quote

lean4huskytop wrote:
Arrow

Next please!


listen to tk - he's right.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lean4huskytop
Smarty Regular


Joined: 19 Aug 2003
Posts: 41

PostPosted: Wed Dec 31, 2003 11:53 pm    Post subject: to tk Reply with quote

tk - if you have the php code, then please submit it here for me to see and test. How about DAT? Shocked
Back to top
View user's profile Send private message
tk
Smarty Regular


Joined: 31 Oct 2003
Posts: 49
Location: London, UK

PostPosted: Thu Jan 01, 2004 2:04 pm    Post subject: Re: to tk Reply with quote

lean4huskytop wrote:
tk - if you have the php code, then please submit it here for me to see and test. How about DAT? :shock:


Hmm.. with respect, how about you use your nugget instead?

I've already given you hints / ideas of what / where to look etc.. I'm _not_ going to do your work for you! Neither is this a PHP tutorial site (admins please correct me if I'm wrong).. but a community of and for Smarty users. While one path may cross the other, what you're aiming to achieve has _nothing_ to do with Smarty whatsoever, which makes any posts on the subject really, off-topic, IMHO.

In regards to my OP, 'move_upload_file()' should have actually been 'move_uploaded_file()' but hit http://php.net/ and all should become clear. If it doesn't, you're reaching too high.



Regards,

tk
_________________
Certified Code Junkie(tM)
Copyleft (L) two thousand and now, tk
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Mon Jan 12, 2004 8:52 pm    Post subject: Re: hey Reply with quote

lean4huskytop wrote:
you only posted 11 messages on here.
I am not going to listen to you Twisted Evil

Arrow

Next please!


Whose going to help you with that attitude? Did you notice how many posts received 0 replies? Count yourself lucky and start thanking the people who take their personal time to respond to you. If I wasn't on holiday I'd be sending you some whoopass.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP