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.

The W3C File API at https://w3c.github.io/FileAPI/ specifies how file objects should be represented and how their properties should be accessed.

The File API spec includes the following interfaces:

  • Blob - raw binary data. Blob objects can be created via the Blob() constructor, but their properties are read-only.
  • File - a specific type of Blob with additional read-only properties.
  • FileList - a collection of File objects.
  • FileReader - provides asynchronous access to a content of a Blob or File object.

Related Tags

Resources

532 questions
-1
votes
2 answers

img element in HTML: file attribute and src attribute behaves differently

I have a file attribute that is saved on a certain element. Said file attribute contains an object of File type. I have antother element. When I try this: document.getElementById('two').src =…
Richard
  • 7,037
  • 2
  • 23
  • 76
-1
votes
1 answer

Upload image by URL in single-page application with Canvas and File API

We have a single-page application (Rails back-end, Ember.js front-end) where we're currently moving away from a server-side image uploader to a client-side image uploader. We previously used the Carrierwave gem to do resizing and sending to S3 on…
yorbro
  • 1,107
  • 1
  • 9
  • 23
-1
votes
1 answer

Website - Storage of data on end users system

I have the following challenge: - I'm trying to save website data to local storage on end user systems. So that they can work while offline. I would furthermore like the local cache to be available for as long as possible. Like somehow handle/block…
Lars Bingchong
  • 323
  • 3
  • 12
-2
votes
1 answer

How to create a JS Blob directly from an array?

I was able to create Blob from an array, either in the snippet below or in https://jsfiddle.net/z9wkfyqv/ (the snippet below can't show the proper code when viewed in its editor). However, is there a faster way to convert the array directly into a…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
-2
votes
1 answer

Retrieve physical address of file on disk

Using the Windows API, I'm trying to write a program to read data from a disk. I managed to get access to the content of the drive using CreateFile and I'm able to search through it. Let's say there are some files on that disk and I know their…
-2
votes
1 answer

Writing to a file via Files write gives a AccessDeniedException exception

I'm creating a maven plugin and I need to write a new file in the project directory. For some reason when I try to create a new file I get the AccessDeniedException. StackTrace: [ERROR] Failed to execute goal…
David Limkys
  • 4,907
  • 5
  • 26
  • 38
-3
votes
1 answer

SetFileAttributeW source code in c++

I tried to access to source code of SetFileAttributeW API, but my efforts is not successful. Any one can guide me how to acquire its source code in c or c++? Best.
user7967742
1 2 3
35
36