Solved

Upload mp3, wav, and wma using Flash and PHP

Posted on 2007-04-02
5
2,976 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

623 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