Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

File Uploads #6

Merged
1 commit merged into from
Feb 9, 2011
Merged

File Uploads #6

1 commit merged into from
Feb 9, 2011

Conversation

fourplusone
Copy link
Contributor

pass --upload-file fileTag=/path/to/file as an argument and set the file of by calling phantom.setFormInputFile(document.getElementById('foo'), 'fileTag');

pass --upload-file fileTag=/path/to/file as an argument and set the file of <input type="file" id="foo"/> by calling phantom.setFormInputFile(document.getElementById('foo'), 'fileTag');
@ariya
Copy link
Owner

ariya commented Feb 7, 2011

A very good approach.

Presumably the 'fileTag' is for security measure?

@fourplusone
Copy link
Contributor Author

It is. Otherwise websites would be able to upload any file..

@ariya
Copy link
Owner

ariya commented Feb 9, 2011

Merged, thanks a lot!
Further discussion can be continued at http://code.google.com/p/phantomjs/issues/detail?id=7

@ariya ariya closed this Feb 10, 2011
@lfranchi lfranchi mentioned this pull request Nov 16, 2011
@andronick83 andronick83 mentioned this pull request Mar 15, 2013
This was referenced Jul 1, 2013
@tigerfz tigerfz mentioned this pull request Feb 5, 2015
ghost pushed a commit that referenced this pull request Dec 22, 2017
ghost pushed a commit that referenced this pull request Dec 26, 2017
* removed'='

* removed'=' #2

* removed'=' #3

* removed '=' #4

* removed '=' #5

* removed '=' #6

* removed '=' #7
ghost pushed a commit that referenced this pull request Jan 15, 2018
ghost pushed a commit that referenced this pull request Jan 15, 2018
* Refactoring /deploy
* Refactoring /src #1
* Refactoring /src #2
* Code refactoring #3
* Code refactoring #4 (repl.*)
* Refactoring code #5
* Refactoring code #6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants