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 check the exisisting directory in phonegap file api?

I have following code to store the captured images in separate directory in sdcard . But How to check whether particular directory exists or not ? Because if exists i want to display the images from that directory if not i want to save the captured…
SSS
  • 1,380
  • 3
  • 28
  • 48
0
votes
0 answers

Can you use HTML5 File Api or other means to generate thumbnail from Photoshop PSD?

Is there any way to generate a thumbnail image from a Photoshop PSD on a Web page? Here is what I'm trying to do: User drags a PSD onto a page (PSD is over 600megs in size) Without having to upload entire PSD, web page is able to generate a…
Ali
  • 23
  • 1
  • 4
0
votes
1 answer

opening any arbitrary file on disk using HTML File API

Is this possible to programmatically open any file on disk using HTML5 File API, for example adding at first those paremeters? open -a Chromium --args --allow-file-access-from-files --disable-web-security
bartek
  • 2,921
  • 5
  • 26
  • 30
0
votes
1 answer

Upload single specific file with HTML5

I need to upload a single specific file (Ex. "C:\test.jpeg") to the web server using HTML5 components "FileAPI" and "XMLHttpRequest". Is it possible? I have seen all types of examples that include drag and drop options, but I need less than that. I…
Aerofan
  • 119
  • 2
  • 5
0
votes
0 answers

File api :: Recieveing file name instead of browse,drag,droop

I am using Html file Api to read a file.Using i read it.it will show a browse button and select the file and read ..in this manner. But instead of the above i want to manually set one default file to read every time.With out changing the code how…
Nidhin T T
  • 298
  • 2
  • 5
  • 15
0
votes
1 answer

Implementing 'Recenty Opened Files' functionality using HTML5 features

I'm planning to implement "Recenty Opened Files" functionality in my webapp and I'm trying to decide which HTML5 technologies to use. The most important thing here is a fact, that I can't just save a filepath to the file and then reopen it. Due to…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
0
votes
1 answer

Accessing data from a JSON object selected locally using HTML5 File API

I'm trying to get access to a JSON object which is selected locally using the HTML 5 API. My code so far is: HTML Javascript JsonObj = null function handleFileSelect(evt) { var files =…
Jamie Fearon
  • 2,574
  • 13
  • 47
  • 65
0
votes
1 answer

jquery file uploading error

I am using a jquery plugin for uploading contents. This plugin use File api. when i use chrome there is an error show that Uncaught TypeError: Object # has no method 'webkitSlice'. here is the error present /** * Return the proper…
deepu sankar
  • 4,335
  • 3
  • 26
  • 37
0
votes
1 answer

Cross Domain File Upload Solution For All Browsers?

Here's my problem: I have 2 web applications and want to upload a file from 1st to 2nd one. So I have to face with 'Same Origin Policy' issue. In my case I own the 2nd Website and the 1st one is not mine. It's for my new customer of my existing web…
0
votes
2 answers

window.URL is undefined

I have an array being populated with blobs (it works correctly) and I want to convert the Blob to Image as soon as I get the blob. (function(index) { images[index] = new Image(); xhr.onload = function() { blobs[index] = new…
Oriol del Rio
  • 699
  • 7
  • 16
0
votes
2 answers

Why does the onload handler fail to properly populate my array?

I need an array containing blobs, so my code is: for (var i = 0; i < total; i++) { var xhr = createXHR(); xhr.open('GET', 'img/tiles/' + zeroFill(i, 4) + '.png', true); xhr.responseType = 'blob'; xhr.onload = function() { …
Scratz
  • 15
  • 2
0
votes
1 answer

FileSystemAPI in Chrome Android

Does Chrome on the Android support the Full FileSystemAPI. Specifically, I need the FileWriter and the ability to create directories. caniuse.com is not helping on this.
Dr.YSG
  • 7,171
  • 22
  • 81
  • 139
0
votes
0 answers

Append Drag & Drop File to Input or Convert it to Base64

I got an working example of how to drag drop and preview an image using HTML5 file API (html5's file api example with jquery?). My interest is to create an image upload form that will use AJAX to post back to the server. What I am interested in…
Ziyan Junaideen
  • 3,270
  • 7
  • 46
  • 71
0
votes
1 answer

How to make Phonegap's (Cordova) File API work like File API in normal browser

Is there a way to make Phonegap's File API work just like same API works in browser? I need same behavior as in browser: Tap on "Open file" button -> "Select File" dialog ->... -> Opening the file with FileReader Object. Thank you!!! UPDATE: I've…
Ivan Vetrov
  • 61
  • 2
  • 7
0
votes
1 answer

Read a file using HTML5's file api

I have a file which is at a network which looks like this - \\\mangoes.txt I want to read this file directly without using any input tag on the html page. how can I achieve this?
tusharmath
  • 10,622
  • 12
  • 56
  • 83