<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="hostingplikow/uploadify.css"> <script type="text/javascript"> $(function() { $('#file_upload').uploadify({ 'swf' : 'hostingplikow/uploadify.swf', 'uploader' : 'hostingplikow/uploadify.php', 'folder' : 'hostingplikow/uploads', 'fileTypeDesc' : 'Any old file you want...', 'fileTypeExts' : '*.gif; *.jpg; *.png', 'fileSizeLimit' : '100KB', 'onUploadSuccess' : function(file, data, response) { $("p").text('Plik ' + file.name + ' został wrzucony.').show('slow'); }, 'onUploadError' : function(file, errorCode, errorMsg, errorString) { alert('The file ' + file.name + ' could not be uploaded: ' + errorString); } // Your options here }); }); </script> </head> <body> <input type="file" name="file_upload" id="file_upload" /> </body> </html>
Potrzebowałbym połączyć się ze skryptem php, po wgraniu pliku w celu pobrania wygenerowanego linku, może ktoś podpowiedzieć co mogę zrobić?