Solved

Upload mp3, wav, and wma using Flash and PHP

Posted on 2007-04-02
5
2,961 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now