Page 1 of 1

Avatar from user comp

Posted: 19 Aug 2006, 08:51
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

Posted: 22 Aug 2006, 09:23
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...