Monday, September 9, 2013

Getting started with the jQuery-File-Upload plugin and cutomizing the upload directory from client-side script

Last week I just got started to explore the elegant and powerful jQuery plugin built by Sebastian Tschan which is hosted here: https://github.com/blueimp/jQuery-File-Upload

It had been very easy and straightforward to deploy it onto my PHP server based on the helpful guide provided. After that I wanted to modify the plugin to be able to upload files and store them in custom sub-directories at server side. This has to be specified by my client-side Javascript and each time the client might point to the same directory or a different one depending on the client operations.

Luckily it has been figured out by a kind person who has generously shared the steps here: https://github.com/blueimp/jQuery-File-Upload/wiki/PHP-%24_GET-dynamic-Directories

Hope my post might help someone to find the link to there too. :)

No comments:

Post a Comment