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
3
votes
3 answers

Disable chunked transfer flowjs

I am using ng-flow directive for uploading files to server. Is there a way i can use normal upload instead of chunked upload that is used in ng-flow module?
Kliment
  • 2,250
  • 3
  • 18
  • 32
2
votes
0 answers

how to convert all optional object fields into non-optional

I have the following Object type in Flow: type Identity = { name: string, lastName: string }; type ExtraInfo = { favoriteColor: string, age: number }; type Person = { a: Identity, b?: ExtraInfo }; Is there a way to define from…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
2
votes
0 answers

Setup Flowjs in a VSCode multi-root workspace for only one folder

To use Flowjs in VSCode you are supposed to install the Flow Language Support extension and disable the normal JS/TS support either by adding "javascript.validate.enable": false to your projects' VSCode settings.json file or disable the…
Philipp Kyeck
  • 18,402
  • 15
  • 86
  • 123
2
votes
0 answers

Flow doesn't consider flow-typed's installed definitions

My project has the following structure: + src + index.js ` Server.js + node_modules + express + flow-typed + npm ` express_v4.x.x.js When I run yarn flow I get the following error Error…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
2
votes
0 answers

Flow js: How to show the definition with the types detailed

I looked for in VSCode, Atom and WebStorm but could not find any showing the detailed type which where previously declared. Here an example from VSCode: type Props = {| propTest: string |}; export const TestFlow1 = (props:Props) => { return
yoh
  • 154
  • 1
  • 10
2
votes
0 answers

AngularJS - ajax - MVC file multiple upload without form data

I am using Flow.JS http://flowjs.github.io/ng-flow/ for file upload. My requirement is such that I will have to send the following data all in one save button click multiple files two string values alongwith the files. The following way works…
2
votes
0 answers

flowjs to upload files POST request sends empty array

I'm trying to use flowjs/ng-flow to upload images but I'm not getting anything on my backend. This is the method that is supposed to receive the images in my Flask routes.py: @app.route('/api/file/upload/', methods = ['GET',…
Larissa Leite
  • 1,358
  • 3
  • 21
  • 36
1
vote
0 answers

Flow does not recognize a refinement of disjoint union of tuples

Is there a way to refine a union of tuples correctly in flow? I see examples for object types in docs but looks like it has a difference for arrays and I don't see any clue for that case. I have this simple code: /* @flow */ type A = ['a', string,…
Max Sinev
  • 5,884
  • 2
  • 25
  • 35
1
vote
1 answer

Using flow.js in Angular 2 Typescript (Cont)

This question is related to this question: Using flow.js in Angular 2 Typescript. Has anybody had any success in implementing flow.js? One of the comments says to follow 'angular-cli way' and I have but still cant get it to work. Can someone put…
John
  • 11
  • 2
1
vote
0 answers

Angular flow.js multiple file added event is not triggering in windows machine [more than 2000 .pdf files]

I am using Angular Flow JS to upload the multiple pdf files. When I tried selecting 1700 pdf, it was working fine and .fileAdded event triggered, but when I tried to upload 2000+ pdf files, the .fileAdded event not at all triggered. This issue is…
1
vote
0 answers

Performance test with jMeter and Flow JS

I have problem with the performance tests. I need to test the upload of file with "flow js". Here is the link what is Flow js: https://flowjs.github.io/ng-flow/ We generated conteinerId successfully, but jMeter, on the next POST request, is not…
Go Flow
  • 11
  • 1
1
vote
0 answers

Integrate FlowJs with angular 2?

I know there is no direct integration of FlowJs with angular2 so i am trying to implement it by following ways but didn't get any success: By Declare direct: Included flow.js script file in index.html and following is the code of component.ts…
Manjit
  • 221
  • 2
  • 4
  • 15
1
vote
1 answer

Uploading users data using CSV file with flow JS

I want to provide upload functionality to my angular JS application , I want to restrict user to upload only CSV/XSL files only,and the File size must be restricted to 100KB ,the users data from the file should be stored in the local storage of…
Meet Shah
  • 67
  • 6
1
vote
0 answers

FlowJS Server Side MIME Types

I'm using FlowJS to handle large file uploads in a PHP application (the client doesn't want to use something like ftp), and Flow is working perfectly, with one caveat. Whenever I get a file upload, the PHP server component of flow always has the…
user1119648
  • 531
  • 1
  • 5
  • 16
1
vote
3 answers

Flow.js and Java Servlet upload file 0 bytes

I added flow.js in my proyect following the instructions and the call to my java…
Jose Antonio
  • 578
  • 1
  • 8
  • 34