04-26-2013, 03:17 PM
I have looked at the code that deals with avatar-uploading. Basically, it goes like this:
- Upload to LFE
- Let a user specify an image-file to upload it
- Transfer and store the file on the server (if necessary, replace the old one with the new)
- Perform a few calculations (especially image size so that it'll be displayed correctly all over the place and auto-resize / throw an error in case the dimensions are larger than acceptable)
- Update the respective entry in the database
- Use an external host
- Follow the link specified
- Because of security-reasons, PHP cannot get image-data from a non-local place. Hence, download it and run the same calculations as in local mode
- Update database-entry and delete the downloaded copy from the local server
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt