Solved

Upload mp3, wav, and wma using Flash and PHP

Posted on 2007-04-02
5
2,965 Views
Last Modified: 2008-01-09
I need a Flash Actionscript and a PHP script on how to upload mp3, wav, and wma from flash to php.
I can upload images but not music files.
 Please help. 500 points and a Grade A.
0
Comment
Question by:leronj23
  • 2
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
victmo earned 250 total points
ID: 18841509
Hello,

Try using the new FileReference Object which is available from Flash 8+

This is a great resource:

    http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm

You can upload everything using Flash and PHP.

Cheers,

Vic
0
 

Author Comment

by:leronj23
ID: 18842989
i tried this tutorial and i keep getting an IO Error. That why i asked someone to write a script for me.
0
 
LVL 37

Assisted Solution

by:CyanBlue
CyanBlue earned 250 total points
ID: 18843016
You cannot however utilize the WAV and WMA file format in Flash...  You can upload them to the server, but Flash won't recognize them...

Having said that, I am suspecting that it might has to do with the file size...  Do a quick test...  Create a WAV file that is around 1MB and upload it to see if it goes through...  Most of the server only allows you to upload maximum 2MB via PHP...

CyanBlue
0
 

Author Comment

by:leronj23
ID: 18843126
I've even tried uploading pictures with this tutorial and it gave me an HTTP Error. I already have a script to upload pictures and it works fine. i thought i have to do something special to upload mp3s
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 18843817
I'm abit confused with that reply...  You were saying you were able to upload pictures, but you also was saying that you were getting HTTP errors...  
The bottom line is that does your script work with the images but not with the MP3 files???

CyanBlue
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question