开发者

Upload images to fixed positions

开发者 https://www.devze.com 2022-12-30 06:21 出处:网络
I really need your help. I would like to ask if it is possible using flash to upload multiple images to particular positions. For example, I have a target that is called \"people\" and when someone up

I really need your help. I would like to ask if it is possible using flash to upload multiple images to particular positions. For example, I have a target that is called "people" and when someone uploads an image that is called "people" the image will be placed on that target.

I apolog开发者_开发技巧ize for my English.

Thank you in advance.


So you want to also store some information about the image uploaded, in order to use that when you retrieve/use it?

Easy-cheezy way is to store a 'keyword' in the filename of the uploaded image. e.g. for image01.jpg uploaded that belongs to "people", upload that as, or rename when it is on the server as image01_people.jpg, then in flash when you load the image just do a split() for the "_" so you can get to the tag and isolate "people" out of image01_people.jpg.

A better way would be to save some information about the uploaded image (like category) either in a simple table in a database, or at least in a CSV text file or xml file.

HTH, George

0

精彩评论

暂无评论...
验证码 换一张
取 消