Avatar from user comp

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Billyboy
Posts: 8
Joined: 19 Aug 2006, 08:30

Avatar from user comp

Post by Billyboy »

Hello

I want to create application where user can post his avatar from own computer.

This will be jpg with user's picture.

How I can transport this file to server side and back?
Or that must be array of pixels?

My own ideas that keep in UserVariables url to this file on server side, and upload it to there via PHP.

Maybe you have better ideas or that realize in SFS?

Thanks for help
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

How I can transport this file to server side and back?
Or that must be array of pixels?
The simplest way is to use a server side PHP script to handle the upload directly from Flash (if you use Flash 8 or later)
Then, as you suggested, you can store the URL in a user variable

With the next SmartFoxServer release (1.5) we'll add native support for flash uploads, so there will be no need to use external PHP scripts etc...
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply