Could this be done?

Soldato
Joined
24 Nov 2008
Posts
3,745
Location
ctf_2Fort
Hey, just thought of an idea and was wondering whether it would be possible.

I currently have a small site that is used to play a few games in school and i was wondering whether i could set a page up on it that would allow users to upload their own .swf games to the site?

Any ideas? :)
 
yes it is possible.

you will need a form to upload the file and other flash variables such as width and height of the flash. you will then need a data store, such as mysql database to store the data in.

you can then retreive this data from the db and display it as you wish.
 
It would be safer and very simple to get them to send them to you and then change the page. As its Flash there is a security risk letting everyone upload files as they could be anything
 
It would be safer and very simple to get them to send them to you and then change the page. As its Flash there is a security risk letting everyone upload files as they could be anything

just check the file type before allowing it to be uploaded
 
just check the file type before allowing it to be uploaded

Its not that simple. Its quite possible the swf could have been designed with malicious intent.

As said, if you can, go with the safer option of manually vetting everything and putting it up your self.
 
Its not that simple. Its quite possible the swf could have been designed with malicious intent.

As said, if you can, go with the safer option of manually vetting everything and putting it up your self.

like with anything on the web...

Just dont make them live straight away, upload with a flag set as '0' (not live), get the system to send you an email so you can vet it, then flag it to live. Alterantivly give you users an option to flag a game as potentially dangerous so you can vet it.

Having said that, for such a small volume i dont think it would be worth it.
 
Last edited:
Back
Top Bottom