I am working on a module and I am trying to add an upload box for an MP3 file. I cannot seem to get it working no matter what I try to do. I have looked at file_save_upload and I am not having any luck. Below is my form code. Could someone point me in the right direction for the file upload process?
$form['background_audio_file'] = array(
'#type'=> 'file',
'#title' => t('Upload File'),
'#description' => t('Please select your file to be uploaded'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save Changes'),
);
The form is working great I just cant seem to find a good example and makes sense for uploading a simple mp3 file. This is D7 btw.
Thanks in advance.
Justin