Search code examples
phpjavascriptfile-uploadswfupload

SWFUpload upload script


I've been looking at the swfupload demos, I'm wondering is there an alternative to using the PHP script upload.php, i.e. using a JavaScript version.


Solution

  • You need something running on your server that will accept the uploaded file from the browser and then do something with it, like saving it to directory. PHP is a server-side language which can do this, however, javascript runs in your browser, not on the server, so doesn't have access to save files to the server. It's likely that you have some sort scripting language running on your server, so it should technically be possible. Perhaps asp? cgi? perl?