Questions tagged [flow-js]

flow.js is a JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.

Flow is a static type checker for your JavaScript code. It does a lot of work to make you more productive. Making you code faster, smarter, more confidently, and to a bigger scale. https://flow.org/en/docs/getting-started/

68 questions
16
votes
2 answers

ng-flow issuing a GET, but not a POST

I am trying to use ng-flow in angular for single image upload against an Express back end. When I select an image for upload, it appears that ng-flow is sending a GET request to my target (/admin/upload), then nothing else. I assume the GET is just…
David Carrico
  • 421
  • 1
  • 4
  • 13
11
votes
1 answer

Unassign browse button on the flow.js HTML5 upload component

With the flow.js component we can assign a browse button like this: flow.assignBrowse(document.getElementById('browseButton')); We can assign a drop area like this: flow.assignDrop(document.getElementById('dropTarget')); We can also unassign a…
Bronzato
  • 9,438
  • 29
  • 120
  • 212
10
votes
2 answers

How to upload file in chunks in ASP.NET using ng-Flow

I am trying to implement ng-flow https://github.com/flowjs/ng-flow for file upload. It upload files in chunk, I successfully set this on client but I am not sure how to handle file on backend inside web api method. public void Upload() { …
Ammar Khan
  • 2,565
  • 6
  • 35
  • 60
10
votes
4 answers

How and where save uploaded files with ng-flow?

First of all, I use ng-flow (html5 file upload extension on angular.js framework) My files are uploaded, I log the event in console. But I don't understand where and how to save them. Here is my html code, upload is called.
Tom-pouce
  • 758
  • 2
  • 11
  • 28
10
votes
3 answers

reassemble binary after flow.js upload on node/express server

I can't figure out how to use the flow.js library with a node backend, and basing my code off the sample on the flow.js github. I'm getting the blob files up, but I'm not building the binary afterward the upload completes. The final get isn't…
user3499275
  • 207
  • 3
  • 9
9
votes
3 answers

Angular - ng-flow How to send String along with File

flow` works better than anything. I want to send one input text also along with file using ng-flow in Angular js Please help me guys...
user3800108
  • 1,208
  • 1
  • 10
  • 14
8
votes
3 answers

What's the most appropriate HTTP error code for a corrupted payload (checksum failure)?

I'm writing a RESTful API with some endpoints to which clients can PUT or POST chunked files (using flow.js), including a payload digest among the metadata. The server also calculates digest and will throw an error if the digests don't match, in…
HonoredMule
  • 719
  • 11
  • 21
8
votes
1 answer

Uploading files with flow.js + ng-flow to WebAPI 2

I'm trying to use flow.js (https://github.com/flowjs/flow.js) via its Angular wrapper (https://github.com/flowjs/ng-flow/tree/master/samples/basic) to upload files to an ASP.NET WebAPI 2 server. Anyway when I select a file to upload my WebAPI just…
Naftis
  • 4,393
  • 7
  • 63
  • 91
7
votes
2 answers

Populating image files with ng-flow.js from json

I'm using ng-flow to upload files in my AngularJS app. I'm able to successfully save data along with uploading multiple files via ng-flow. However, when querying the data and getting it via JSON, I'm not sure how to add the files into the ng-flow…
RNickMcCandless
  • 717
  • 2
  • 9
  • 24
7
votes
2 answers

how to set single file in ng-flow

I need to use the single-file attribute in the ng-flow, i have to use it because this attribute other than limits the nuber of file to send, substitute the file thate was added until the upload event, see this: singleFile Enable single file upload.…
mautrok
  • 961
  • 1
  • 17
  • 41
5
votes
2 answers

flow.js upload file on click

Hopefully someone can help with this. Basically, we are using ng-flow https://github.com/flowjs/ng-flow to allow for drag and drop to upload items. We are also using MVC 4. All seems to be working as should, however, we would like to customize…
Simon
  • 1,412
  • 4
  • 20
  • 48
4
votes
1 answer

Cannot spread object literal because Flow cannot determine a type for object literal

The following (simplified) code type Category = { id: string, name: string, }; type Option = { id: string, name: string, isSelected: boolean, }; const options = categories.map((c: Category): Option => ({ isSelected: true, …
yN.
  • 1,847
  • 5
  • 30
  • 47
4
votes
2 answers

Using flow.js in Angular 2 Typescript

I want to integrate flowjs or ng-flow to my Angular 2 application. I've installed the flowjs typings using npm install --save-dev @types/flowjs from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/flowjs But when I import it…
Phuc Nguyen
  • 168
  • 3
  • 9
4
votes
2 answers

How to test flow.js uploading with Selenium?

I have an AngularJS SPA where the user can upload files using flow.js, more precisely I'm using its wrapper ng-flow. Now I'm setting the automated e2e tests up with Selenium, but I can't figure out how to test the forementioned uploading mechanism…
Gargaroz
  • 313
  • 9
  • 28
4
votes
2 answers

Integrating Flow JS with Ember JS - Data not Binded

I am trying to integrate FlowJS with EmberJS. I was successful to upload data to server, so, I am good on that part. I am unsuccessful When trying to bind flow object data with emberJS component to show data via handlebars. For some reason data…
Sisir
  • 2,668
  • 6
  • 47
  • 82
1
2 3 4 5