SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Upload a flash movie

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload a flash movie

    I have no experience with flash what so ever. I'm building a CMS with PHP where you can upload image files. I would also like to be able to upload flash movies to the database and then output them to a webpage. How do go about doing this? Wich "accept" am I gonna use on the input element, and what, if any, information can I extract from the .SWF-file?

    //Fredrik
    You know I'm not gon diss you on the internet
    Cause my mama taught me better than that

  2. #2
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mm... if your going to upload multimedia files, it is simplier and less database intensive to upload the the file and store the name of the file in the database. So the name of the file points to the file on the server. There are plenty of tutorials on file uploads with php, just google it.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've been Googleing it, and I have a hard time finding anything that deals with .swf-files. Do you have any suggestions on articles or sites?

    //Fredrik
    You know I'm not gon diss you on the internet
    Cause my mama taught me better than that

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2008
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Flash's mime type is application/x-shockwave-flash
    You can get information with http://php.net/getimagesize or http://getid3.sourceforge.net

    Flash files can conduct XSS attacks, so be sure to put the correct restriction parameters on the OBJECT/EMBED tag

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •