This is a discussion on "File uploader" within the PHP Forum section. This forum, and the thread "File uploader are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
File uploader
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
File uploader
Been asked to do a concept for work which is to upload artwork at our website rather than e-mail it.
Basically there is 3 step system. 1. Enter your details 2. Upload your image 3. Submit I understand all the principles of the file uploader and the form submitter. My question is how do i allow customers to upload the picture on the page so it can be checked in size and format before the page is submitted? It's hard to explain in words but an example is something like facebook or bebo, where you choose your picture and it uploads before you submit the page. I am using majority of php for this but not sure if maybe this is javascript feature... Thanks Jtyoungs |
|
|
|
||||
|
Re: File uploader
http://uk3.php.net/getimagesize Thats to check the image size. I can show you my image resizer script if you wish also.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: File uploader
Check these tutorials:
http://www.phpeasystep.com/php-cate....ry=file-upload
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: File uploader
not what i was looking for... that's the easier part... cheers anyways guys.
|
|
||||
|
Re: File uploader
You will have to use AJAX to upload the images.
It's pretty complex though.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
- About your file format it will not be a problem to check from javascript.
- But regarding the file size it's not so simple: - an idea is to use the upload limit from php.ini file but this method will not be so friendly for your users - an ajax check will be the best idea and you need these steps: 1. create an ajax request and send data by POST method 2. on server upload the file and check the size 3. if the size is allowed return a confirmation message 4. otherwise delete the image and show an error message - I don't have an example now but I will try to create one tomorrow. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| uploader filename | alexgeek | JavaScript Forum | 0 | Oct 8th, 2007 17:25 |
| Multi file uploader and folder create | 737mechanic | PHP Forum | 1 | Sep 29th, 2007 11:03 |
| how do I use a:hover within a html file (without the css file) | heyo | Web Page Design | 2 | Mar 5th, 2007 22:50 |
| Creating a log file (text file) and an XML file using XSL | kdelacruz | Other Programming Languages | 1 | Nov 4th, 2006 21:12 |
| How make Word file same as html file in ASP | humair | Classic ASP | 5 | Sep 24th, 2003 14:35 |