Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [fileapi]

Use this tag for questions related to the W3C File API. The W3C File API specifies how file objects should be represented and how their properties should be accessed.

0 votes
1 answer
12 views

How to upload a complete folder instead on files on my Next app? [closed]

I am creating a next app I am able to upload files using fileAPI , but I want to upload a folder and write a logic so that all the files (.text,.img,.pdf) inside the folder can be extracted can be ...
Aditya Sharma's user avatar
1 vote
1 answer
36 views

File reader not giving out the results properly for certain csv files

I'm new to file reader. While adding a csv file, the file reader sometimes gives out the results like this Pillar ID,Pillar Name,Question ID,Question,Question Description,Best Practice ID,Best ...
lkaviyarasik4's user avatar
0 votes
1 answer
121 views

Is there any way to determine on which disk does a particular logical offset of a spanned volume resides?

Some of my colleagues have worked on a mini-port driver that encrypts data when it is being written to a volume and decrypts it when it is being read. A possible issue that occurs in this for user is ...
kshitij Sabale's user avatar
0 votes
1 answer
161 views

FileSystemFileEntry's method 'file()' fails on local file

I'm trying to use the File and Drag'n'Drop APIs together, and specifically webkitGetAsEntry method. From the example source code on the linked page you may find further links to the Mozilla's ...
Stan's user avatar
  • 8,728
0 votes
1 answer
147 views

Is there any way to read a fragmented file from the Harddisk without moving it's clusters?

I have been writing a program to read the contents of a file directly from the Harddisk. I have been mostly successful with non-fragmented files, using the FSCTL_GET_RETRIEVAL_POINTERS, I get the ...
kshitij Sabale's user avatar
3 votes
0 answers
127 views

Add length information to a video file created from blob using the File API

I created a video using MediaRecorder API (combining audio and videos from different sources), I got the final blob and converted it to a file, and downloaded it, but when I play it, it doesn't seem ...
Shahid Khan's user avatar
0 votes
0 answers
159 views

Window.open() opens raw text instead of actual file

In Angular app when I try to open a blob file received from the api using the following method in Chrome or Edge browser, a new tab opens with raw text instead of the corresponding file. static ...
TalVik99's user avatar
  • 140
5 votes
0 answers
506 views

URL.revokeObjectURL doesn't remove blobs from "Sources" panel and from chrome://blob-internals/

The problem is basically what the title says. The minimal example to demonstrate it is below. This function accepts a File object as an argument from <input type='file' /> field. It creates a ...
roman465's user avatar
  • 169
-1 votes
1 answer
3k views

"\\.\\PhysicalDrive1" is not a core dump: file format not recognized

I have been working on a fantasy console type project. I decided to zero a flash drive I had laying around and use it as the ROM input to the fantasy console. While trying to write code to read bytes ...
Tobi Noara's user avatar
0 votes
2 answers
42 views

How could I check that if the file has a desirable extension when uploading a file in Javascript/FileApi

So the thing that's happening I am kind of stuck with the extensions of fileApi, I can't see to figure out how should I display the alert when the Upload file is not .pdf for example. I would really ...
marun's user avatar
  • 17
3 votes
0 answers
368 views

Random access to a file in browser File API

I can use the File API to read the whole file with reader.readAsArrayBuffer(file); const inputElement = document.getElementById("input"); inputElement.addEventListener("change&...
fadedbee's user avatar
  • 44.1k
2 votes
0 answers
168 views

Is it possible to re-open a file that was selected via the "input file" button programatically

In my web app the user selects a large zip file via an "input file" button. The file is then returned as a blob (see the snapshot zipfile1). The program then reads chunks (individual files) ...
Avner Moshkovitz's user avatar
1 vote
1 answer
601 views

In Javascript, when opening a file via an "input file" button, is the entire file read into memory

In javascript, when opening a file via a button returns a Blob object (e.g. blob1). I can then get the actual data of the blob via blob1ArrayBuffer = blob1.arrayBuffer(); When the Blob object (e.g. ...
Avner Moshkovitz's user avatar
2 votes
1 answer
715 views

Calculate file checksum in JS using ReadableStream and PipeTo?

I wish to calculate a file's checksum locally with JS and have been searching for examples of how to accomplish this using the Streams Api and pipeTo, but have only found examples with Node.js which I ...
Andreas Zita's user avatar
  • 7,469
0 votes
0 answers
32 views

Uploading Files: FileAPI vs fetch, equivalent of a progress hook in fetch? [duplicate]

Motivation We're currently on our way to implement a webcomponent that handles file uploads. These could also be larger files like recorded videos. What I've checked From what I've researched so far, ...
connexo's user avatar
  • 55.9k

15 30 50 per page
1
2 3 4 5
36