Linked Questions
125 questions linked to/from Create and save a file with JavaScript
1164
votes
23
answers
711k
views
How to create a file in memory for user to download, but not through server?
Is there a way to create a text file on the client side and prompt the user to download it without any interaction with the server?
I know I can't write directly to their machine (security and all), ...
26
votes
3
answers
91k
views
How to generate and prompt to save a file from content in the client browser? [duplicate]
I have a situation where I need to give my users the option to save some data stored locally in their client memory to disk. The current workaround I have is having a handler like this
(define-...
-1
votes
3
answers
1k
views
How to save and open files generated on my website to the user's local file system? [duplicate]
I've written a simple rich text editor and want the user to be able to save and open generated files to their local file system. The behaviour I want to emulate can be seen on https://excalidraw.com/ ...
1
vote
1
answer
1k
views
I Get the Image URL's from S3 bucket using Angularjs but how to make that Image to be download from client side [duplicate]
I will get all the s3 bucket object URL in the Console.
How to download that object from client side using Angularjs
app.controller('Sample', function($scope) {
AWS.config.update({
...
0
votes
0
answers
2k
views
How to choose a file and save the path's file via JS [duplicate]
I want to click on a button to open a window and choose a file.
I'm using this code for the choosing:
<button onclick="document.getElementById('file-input').click();">Open</button>
<...
0
votes
2
answers
1k
views
Is it possible to store Strings in Json file? [duplicate]
The problem that I have is, that I want to store data that I got in JavaScript into a JSON file.
For example the JSON file at the beginning looks like this:
{
"ip": "none",
"user": "none"
}
...
-2
votes
1
answer
264
views
Creating a file using plain JavaScript [duplicate]
Is there any way to create files in plain JavaScript only?
Actually, I am using a static hosting provider (Neocities) and so I want a flat file system at least to store my records.
I can only work ...
0
votes
1
answer
198
views
Can java-script be use via a browser to write a file [duplicate]
Does java script have the functionality to write files to the local machine?
Description: i working on a project that would allow java-script to generate some content and then store it as a text ...
0
votes
0
answers
172
views
JavaScript: How to create and save text file [duplicate]
I need to create a new .txt file with answers written in it. I'm using Javascript.
How to do it? I think hard coding will be the best because I'm not allowed to use jQuery , filesaver plugins and etc.....
287
votes
18
answers
238k
views
Is there any way to specify a suggested filename when using data: URI?
If for example you follow the link:
data:application/octet-stream;base64,SGVsbG8=
The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself. Is ...
215
votes
11
answers
768k
views
How to open a local disk file with JavaScript?
I tried to open file with
window.open("file:///D:/Hello.txt");
The browser does not allow opening a local file this way, probably for security reasons. I want to use the file's data in the client ...
35
votes
13
answers
108k
views
Save HTML locally with Javascript
I know that client-side Javascript cannot write data to the local filesystem, for obvious security reasons.
The only way to save data locally with Javascript seems to be with cookies, localStorage, or ...
54
votes
5
answers
151k
views
Save to Local File from Blob
I have a difficult question to you, which i'm struggling on for some time now.
I'm looking for a solution, where i can save a file to the users computer, without the local storage, because local ...
15
votes
6
answers
30k
views
How to download a file without using <a> element with download attribute or a server?
According to caniuse the download attribute of <a> element is supported at Microsoft Edge build 10547+, but not IE or Safari.
How to download a file object without using <a> element with ...
18
votes
3
answers
11k
views
How to import/export database from PouchDB
How to import/export database from local PouchDB database?
I need save my local database and open it in different platform.
There is no CouchDB on server side.