Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6559531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:20:22+00:00 2026-05-25T13:20:22+00:00

I was wondering, is it possible to read/write a file from/to a certain user

  • 0

I was wondering, is it possible to read/write a file from/to a certain user directory using JavaScript and/or HTML5? E.g. a user fills in %USERPROFILE%\Documents\mydata.svg or ~/Documents/mydata.svg into a textfield, and the file is written.

Or would I have to be forced use a Java applet to do this?

Sidenote #1: If the solution only works in Google Chrome, that’s fine; but any webkit browser would be even better.

Sidenote #2: The location doesn’t really matter, as long as it’s the same location every time. It might as well be {sandboxed dir}\mydata.svg in this case, and then the user just doesn’t get an option where his/her data is stored.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:20:23+00:00Added an answer on May 25, 2026 at 1:20 pm

    In unprivileged content: no, not under any circumstances*. Good thing, too, or your computer would be rendered useless after 10 minutes on the internet.

    If an extension would suffice, check out some related answers here: Writing to local file system in Chrome extension or Chrome extension: How to save a file on disk

    Best practice would be to offer the SVG file as a download and let the user decide if and where to save it: http://www.benbarnett.net/2010/06/04/export-svg-from-raphael-js-to-create-a-png-bitmap/

    (* – the File API is in draft and may be widely available in the future, but is currently only supported in Chrome. )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if it was possible to read a text file that was
I am wondering if the below is possible in Spring Read a property file
I know it is possible to write and read directly to memory by using
I would like to know how it is possible to read IL from a
I know it's possible to read in values from the grails-app/conf/Config.groovy but i was
I was wondering whether is it possible to hide javascript files when visiting a
I was wondering if it is possible, using reflection, or something similar to invoke
I was wondering ( if possible ) if there was a program/tool/utility that when
Just toying with the SDK and I was wondering if possible a UITouch event
I'm wondering if its possible to add new class data members at run-time in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.