Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload.php? #5

Open
khalwat opened this issue Jun 1, 2015 · 2 comments
Open

Upload.php? #5

khalwat opened this issue Jun 1, 2015 · 2 comments

Comments

@khalwat
Copy link

khalwat commented Jun 1, 2015

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

@jayelkaake
Copy link

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.

@tamaspap
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants