Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2012, 11:55 AM   PM User | #1
gibbon
New to the CF scene

 
Join Date: Nov 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
gibbon is an unknown quantity at this point
Accessing local files?

Ok, being a web develper i know that this isnt generally acceptable, and rightly so for many reasons.

But at the moment i am toying with an idea and i basically i want to have a page where when loaded by a client, it (by either asking and getting permission, because the client will WANT to give permission) look for a specific directory on the users computer and read a file within, no writing, no modifying, just read a file.

Ive read recently that HTML5 gives local file storage/access but from what i have read this allocates you space on the HD to store and read files you have put there, so not access to the client directories.

Like i said, i can fully see the reason for not, but the client will want to give permission, so even if there is a promt that is fine.

Thanks
Andy
gibbon is offline   Reply With Quote
Old 10-02-2012, 04:04 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
How often does the file need to be read?
How often does the file contents change?
And what does the file contain that can be read?

I'm thinking that there would be an .exe script running on
the user's PC that periodically uploads (FTP) an XML file or
something containing the data to a website ... to be
read online from the webhost server, not the user's PC.
mlseim is online now   Reply With Quote
Old 10-05-2012, 10:00 PM   PM User | #3
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 593
Thanks: 1
Thanked 19 Times in 19 Posts
jalarie is an unknown quantity at this point
How about:
Code:
<iframe src="directoryName/FileName">
  Your browser doesn't support IFrames.
</iframe>
You might also care about things like:
Code:
frameborder="1"
width="30%"
height="300"
__________________
Visit my site at http://spruce.flint.umich.edu/~jalarie/.
jalarie is offline   Reply With Quote
Old 10-06-2012, 02:29 AM   PM User | #4
patryk
Regular Coder

 
patryk's Avatar
 
Join Date: Oct 2012
Location: /dev/couch
Posts: 395
Thanks: 2
Thanked 64 Times in 64 Posts
patryk is on a distinguished road
as far as I know the closest thing to what you want to accomplish would be automated AJAX upload, but user will still have to sellect the file.
that's security measure in all browsers i know.

as far as i know your only option would be to have dedicated software on client's side. For example you can tell your user to download some simple VBasic script to uplaoda files to your server.
patryk is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:39 AM.


Advertisement
Log in to turn off these ads.