tamaspap/uploader

Upload.php?

khalwat opened this issue · 2 comments

What should the "upload.php" look like for this script? Example code would be helpful.

See something like http://www.w3schools.com/php/php_file_upload.asp.
Files are uploaded like any other form. You can choose the attribute through the "name" attribute. For example:

        var uploader = new Uploader({
            selectButton: $('#by_upload_button'),
            url: "/pictures.php",
            name: 'image'
        });

That will post a file in the image attribute to the /pictures.php endpoint.

You are right. I'll add an example in the readme file.