javascript - Make a file picking process as automated as possible -
i have php program needs file exists in server.
wanted make picking of remote file automated possible.
have input tag:
<input name="infofile" >
now i'd have following process automatic possible (except submitting):
- open file picker.
- fill url picking space.
and user presses open , submit button.
want use no security exploits.
why not making server? alternate use when:
- allow_url_fopen set false
- curl disabled.
i can't think of way use user's machine fetch file. same origin policy prevent ajax access remote file, , pre-filling file input impossible due security.
i think best can provide download link user click on. alternatively, allow_url_fopen
or curl
enabled - if @ possible.
also alternatively, flash program should able fetch remote file, , upload straight away. i'm not aware of ready-made script that, have custom built.
Comments
Post a Comment