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

How to combine flowjs type definitions

How can I combine the following type definitions, so I dont have to repeat myself? type Lama = {| name: string, |}; type LamaWithHat = {| name: string, hat: string, |}; Tried using Interseptions but appearently the syntax might be wrong: type…
yN.
  • 1,847
  • 5
  • 30
  • 47
0
votes
0 answers

how to use Object.assign with literals on a reducer with defined returning flow type

I'm writing a reducer that will be used along with React.useReducer hook. Flow is used, but the reducer is suffering from a flow error because Object.assign({}, state ... has {} as an object literal that is incompatible with…
Bertuz
  • 2,390
  • 3
  • 25
  • 50
0
votes
1 answer

Proper type for an onClick event in React with Flow types

I am trying to create a React component that has a property onClick and I am trying to determine the right type signature for the props of the component. I have tried the following along with various modifications. type Props = { label: string, …
BBS
  • 1,351
  • 2
  • 12
  • 27
0
votes
1 answer

InitelliJ Idea, ReactApp and Flow: Unexpected token

Flow displays errors, where there are none. Eg: Restart with flow stop and flow wont help it. If I close the file and reopen it, the errors disappear, but other errors appear as I continue coding. My flow version: "flow-bin": "^0.125.1" Any ideas…
yN.
  • 1,847
  • 5
  • 30
  • 47
0
votes
2 answers

Using a promise within an event

I use flow.js (doc here) to upload documents on my website. 2 ways to upload something: Through an 'upload' button By drag'n drop I would like to ask confirmation from the user if the file is drag'n droppped. You can take a look at the code…
Bronzato
  • 9,438
  • 29
  • 120
  • 212
0
votes
2 answers

Questions about extract.autodesk.io - taking a file path instead of choosing with the file chooser

I'm trying to modify the project so I could plug in a file path or a file as a variable instead of the user choosing the model file. So I'm looking for where the actual upload happens. In submitProject():…
shinzou
  • 5,850
  • 10
  • 60
  • 124
0
votes
1 answer

How to get mutilple file upload images using flow js with angular in php server side

Here i add my code and set codeigniter url like 'apis/service/manish_sharma' , but i not getting any files array in my api.so please help me
Manish sharma
  • 838
  • 2
  • 8
  • 24
0
votes
1 answer

Homebrew install the old version of flow

I cd to my react-native project directory, and run flow, it prompts me Launching Flow server for /Users/... Wrong version of Flow. The config specifies version ^0.32.0 but this is version 0.33.0. How do I install the previous version flow with…
ZeroChow
  • 422
  • 2
  • 5
  • 16
0
votes
1 answer

Flow.js uploading in a SINGLE chunk

I am using ng-flow (an angular wrapper for flow.js ) to upload images to a server. JS code: standard with the following option to avoid chunks testing: { testChunks:false } I prefer NOT to implement on the server a method for multi-chunks upload…
checklist
  • 12,340
  • 15
  • 58
  • 102
0
votes
1 answer

FlowJS example to loop through files in Angular controller

Does anyone have an example on how to access the $flow object in an angularJS controller? I need to iterate through the files after the end user clicks a submit button before they're uploaded. I've tried passing the $flow object from the front…
Will Strohl
  • 1,646
  • 2
  • 15
  • 32
0
votes
2 answers

Flow Js - upload files as array

I am trying to use FlowJS angular plugin for a upload functionality and I need to tweak it a little. I will have to files of all types I am using ASP.NET MVC. .config(['flowFactoryProvider', function (flowFactoryProvider)…
wickjon
  • 900
  • 5
  • 14
  • 40
0
votes
1 answer

Identify which Flow.js / ng-flow input (flow-btn) was used to upload a file

I have multiple flow-btn elements on my page. There is a list of items that the user can upload single files directly in to (individually) or they can choose to upload multiple files which will automatically populate the list. Everything is inside a…
Daniel Crisp
  • 1,945
  • 1
  • 15
  • 23
0
votes
1 answer

Flowjs file upload - Ionic and ngCordova

I'm trying to upload an image from my app to the server, I wanted to use the ngCordova file transfer plugin but I'm not happy with the progress informations that this plugin gives you, so I decided to go with Flowjs, but I can't manage to create a…
0
votes
2 answers

how to pass parameters on flow.upload in flowjs

I need to pass parameters which are different for each file I used flowobj.opts.query but that adds to all files. Parameters should be different for each file upload angular.forEach($flow.files, function (file, key) { …
0
votes
0 answers

How do I access a chunk blob data with ng-flow?

I'm trying to access a chunk of blob data using ng-flow from an angular controller. $scope.$on('flow::fileAdded', function(event, $flow, flowFile) { console.log(flowFile.chunks[0]) // See image output from console …
dolyth
  • 235
  • 2
  • 11