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
0
votes
1 answer

How to delete photos from camera roll in iphone using phonegap file api?

Actually I could delete the files from a location like below /Users/manu/Library/Application Support/iPhone Simulator/6.0/Media/DCIM/100APPLE But the image is still visible in Photos app. From where is this coming? How to make a picture available…
Manu
  • 4,101
  • 1
  • 17
  • 23
0
votes
1 answer

Get File info before uploading using javascript cross browser solution

I know File API of HTML5 is not supported in any version of IE.But is there any work around to get file information (size,type) before uploading it to server using javascript. I need to check size of file before uploading it. File Api does the work…
Sneha Patani
  • 63
  • 1
  • 3
  • 10
0
votes
1 answer

Reducing the memory and CPU usage from reading an Image with the FileAPI

So I'm using this function I made to read images from the users hard drive and display them as thumbnails if they have a browser capable of using the FileAPI: // loop over them sequentially to prevent hogging memory function load(i) { …
rich97
  • 2,809
  • 2
  • 28
  • 34
0
votes
1 answer

Javascript HTML5 FileAPI: Uncaught ReferenceError: utils is not defined

I can't find this anywhere, and no one else has this problem that I know of. I'm using the code straight off http://www.w3.org/TR/FileAPI/ and I can't get it to work at all. Here's the jsfiddle I've been using to test it out…
Tgwizman
  • 1,469
  • 2
  • 19
  • 34
0
votes
1 answer

Android HTML5 FileApi can i read file from SD Card?

Is there a way for Website to read certain file from Android SDCard (i know that this file exist on SDCard) while working in browser? I want my website to open "certain video file" from SDCard (hugeXXX.avi) :) Is it even possible?
obenjiro
  • 3,665
  • 7
  • 44
  • 82
0
votes
1 answer

How to extract data url of image from html5 file upload

I'm currently creating an upload app and I want the images to show up in the browser before the user uploads it. I'm having a problem with getting the images to work though. I can render the file name, last modified but I can't for the life of me…
0
votes
1 answer

Phonegap File System 'undefined'

I have mobile web app that runs on iOS. I run JS code that is served from a remote server. in it, I call window.requestFileSystem and it evaluates as 'undefined'. However, when evaluating this from a bundled .html file (located in the www folder of…
oriharel
  • 10,418
  • 14
  • 48
  • 57
0
votes
1 answer

HTML5 - how to detect a file is accessible

In my app I upload a file to the server using HTML5 File API, however I am encountering a situation where a file is not accessible because it is being used by another process. This actually creates two different error conditions in firefox and in…
Tamar
  • 2,016
  • 1
  • 15
  • 26
0
votes
1 answer

jquery-html5-upload issue (Upload file on button click)

I can't get the proper way to upload a file on button click using this plugin. https://github.com/mihaild/jquery-html5-upload In documentation it says: Options Events All events except "change" used by plugin have prefix "html5_upload.". Events…
Bahy
  • 3
  • 1
  • 4
0
votes
2 answers

jQuery/HTML5 FileAPI: Why does no drag event appear to be triggering?

Why is nothing happening here when I drag a file over the imageContainer div? Nothing in the console, nothing on the page, etc.
... $('#imageContainer').on({ dragenter:…
BrianFreud
  • 7,094
  • 6
  • 33
  • 50
0
votes
1 answer

Opening local files without input or drag-and-drop

Is it possible to open a local file (from .html file located on the PC itself) without XMLHttpRequest for random reading and maybe writing and without loading all the content to RAM?
Triang3l
  • 1,230
  • 9
  • 29
-1
votes
1 answer

How can I read a file from a path, in Javascript?

There are a lot of solutions that are based on the fetch api or the XMLHttpRequest, but they return CORS or same-origin-policy errors. The File/Filereader API works out of the box , but only for files chosen by the user via a input file (because…
codebot
  • 517
  • 8
  • 29
  • 55
-1
votes
2 answers

How to create file in the local fs using modern FileApi?

I have this code: document.querySelector('#myfile').onchange = function(e) { var files = this.files; window.requestFileSystem(window.TEMPORARY, 1024 * 1024, function(fs) { let file = files[0]; let nem_file_name = file.name + '_copy'; …
mystdeim
  • 4,802
  • 11
  • 49
  • 77
-1
votes
1 answer

How can I use LoadLibrary to get the address of a function defined in fileapi.h?

I want to know the name of the DLL/LIB in which functions declared in fileapi.h are kept. So that I can use LoadLibrary(dllname) (if it is inside DLL).
simplePerson43
  • 3,787
  • 1
  • 15
  • 10
-1
votes
1 answer

Javascript convert image to File return zeros

I have img from other server On click this img i want convert to File object for send post request to server. After this function i see that data all bytes = 0, dont understand what happing ? In search i find…
padavan
  • 714
  • 8
  • 22
1 2 3
35
36