It looks like you're new here. If you want to get involved, click one of these buttons!
$('#upload_song2').uploadify({
'auto' : true,
'multi' : false,
'fileTypeDesc' : 'Mp3 Files',
'fileTypeExts' : '*.mp3',
'swf' : 'uploadify.swf',
'uploader' : 'artist_music_process.php' ,
'sizeLimit': 25600, // 25 MB
'onUploadStart' : function(file)
{
console.log(file);
$('#upload_song2').uploadify("settings",
"formData", {
"column":'album_song_name2',
'artist_id' : '<?php echo $artist_details['id']; ?>',
'username' : '<?php echo $artist_details['username'];?>'
});
},
'onUploadSuccess' : function(file, data, response)
{
alert(data);
$("#container").notify("create", {
title: 'Success',
text: file.name+' Uploaded with success'
});
$('#txt_song2').val(file.name);
$('#hid_song2').val(data);
}
// Your options here
}); //uploadify ends
This is my Debug Code .
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.2.0
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: /desi/artist_music_process.php
SWF DEBUG: File Types String: *.mp3
SWF DEBUG: Parsed File Types: mp3
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: Mp3 Files (*.mp3)
SWF DEBUG: File Size Limit: 0 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 999
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Single Select. Allowed file types: *.mp3
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: username=basit
SWF DEBUG: Global Post Item: column=album_song_name2
SWF DEBUG: Global Post Item: artist_id=7
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /desi/artist_music_process.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4128768. Total: 10070528
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 10070528. Total: 10070528
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: Array
SWF DEBUG: (
SWF DEBUG: )
SWF DEBUG: Array
SWF DEBUG: (
SWF DEBUG: )
SWF DEBUG:
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: Event: fileDialogStart : Browsing files. Single Select. Allowed file types: *.mp3
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1
SWF DEBUG: Global Post Item: username=basit
SWF DEBUG: Global Post Item: column=album_song_name2
SWF DEBUG: Global Post Item: artist_id=7
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /desi/artist_music_process.php for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 5599328. Total: 5599328
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Response Received: true Data: Array
SWF DEBUG: (
SWF DEBUG: [Filename] => Utay - Copy.mp3
SWF DEBUG: [username] => basit
SWF DEBUG: [column] => album_song_name2
SWF DEBUG: [artist_id] => 7
SWF DEBUG: [Upload] => Submit Query
SWF DEBUG: )
SWF DEBUG: Array
SWF DEBUG: (
SWF DEBUG: [Filedata] => Array
SWF DEBUG: (
SWF DEBUG: [name] => Utay - Copy.mp3
SWF DEBUG: [type] => application/octet-stream
SWF DEBUG: [tmp_name] => C:\wamp\tmp\phpAB62.tmp
SWF DEBUG: [error] => 0
SWF DEBUG: [size] => 5599328
SWF DEBUG: )
SWF DEBUG:
SWF DEBUG: )
SWF DEBUG: basit_utay - copy.mp3
SWF DEBUG: Event: uploadComplete : Upload cycle complete.