/    Sign up×
Community /Pin to ProfileBookmark

HTML Upload form with text box

I’m creating a form for uploading a file to the server. Everything works great but the only option it allows is to browse your computer for the file. I want the user to be able to copy and paste a local absolute file path into a text box and upload a file that way. I’m good with HTML, php and decent with javascript. Is this possible?

Thanks.

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@criterion9Aug 23.2011 — I'm creating a form for uploading a file to the server. Everything works great but the only option it allows is to browse your computer for the file. I want the user to be able to copy and paste a local absolute file path into a text box and upload a file that way. I'm good with HTML, php and decent with javascript. Is this possible?

Thanks.[/QUOTE]


This would only be possible by running an additional add-on (Java applet, Flash swf, ActiveX control, etc) in the browser since the security model in place in browsers prevents a web site from accessing the local system directly.
Copy linkTweet thisAlerts:
@HTML_FILE_UPLOAauthorAug 23.2011 — Thanks. Ill use flash.
Copy linkTweet thisAlerts:
@HTML_FILE_UPLOAauthorAug 23.2011 — are you sure this can be done with flash? Flash is only giving me the browse option on a FileReference object.
Copy linkTweet thisAlerts:
@criterion9Aug 23.2011 — are you sure this can be done with flash? Flash is only giving me the browse option on a FileReference object.[/QUOTE]

You'll need to script something probably utilizing the filesystem package.

http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/
Copy linkTweet thisAlerts:
@HTML_FILE_UPLOAauthorAug 23.2011 — filesystem package is only usable in adobe AIR?

The link you gave me is what I was doing but again, it only allows for you to browse your local computer. It does allow the user copy and paste an absolute path to the file they want uploaded.

I guess I'll try java now.
×

Success!

Help @HTML_FILE_UPLOA spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...