PDA

View Full Version : Photo Upload



suryakanth
22 Mar 2010, 7:03 AM
HI,


I wanna upload photo(Image) in extjs, what should i do ?



when i click on browse button, i need to select the image.
after selection, i have to show that in the Box Component.
once, the is confirmed it needs to be saved to database(MYSql)


After storing.........

How should i display the same in the Box Component.

Need serious help......

if possible with back-end code that is PHP also....

Thanks in advance....

Condor
22 Mar 2010, 7:13 AM
You can't do what you describe due to security limitations.

You'll have to:
1. Select an image on the client
2. Upload it to the server and store it in a temporary location
3. Show it in on client
4. Have to user confirm the selection
5. Save the image on the server

suryakanth
22 Mar 2010, 8:10 PM
Thanks for Ur reply......

Can u submit any reference, so that i can have a look at it.

suryakanth
22 Mar 2010, 9:38 PM
HI,


I wanna upload photo(Image) in extjs, what should i do ?



when i click on browse button, i need to select the image.
after selection, i have to show that in the Box Component.
once, the is confirmed it needs to be saved to database(MYSql)


After storing.........

How should i display the same in the Box Component.

Need serious help......

if possible with back-end code that is PHP also....

Thanks in advance....