Reputation: 4106
Is it possible to use two uploadify scripts in one page?
When first script finishes uploading data, then second one should start.
Is this possible?
...................
sorry that is not explained clearly.
I wish have two uploadify script in one page. One uploadify script upload only images, second only pdf files.
Upvotes: 0
Views: 749
Reputation: 2431
Yes!
HTML
<input type="file" id="file_kpi_36" name="file_kpi_36" class="inputFileUploadify"/>
when the number 36 is dinamical!
JS
$(document).ready(function() {
$(".inputFileUploadify").each(function() {
var myID = $(this).attr('id');
$('#' + myID).uploadify({
'uploader' : '/uploadify/uploadify.swf',
'script' : '/uploadify/uploadify.php',
'cancelImg' : '/uploadify/cancel.png',
'expressInstall': '/uploadify/expressInstall.swf',
'folder' : '/uploads',
'displayData' : 'percentage',
'method' : 'post',
'simUploadLimit': 1,
'queueSizeLimit': 1,
'sizeLimit' : 10485760,
'auto' : true
});
});
});
try and you see! ;)
Upvotes: 0