apache / apache/cordova-plugin-file

Support for other File constructors

Open
#240 10 comments 1 reaction 0 assignees View on GitHub
bug platform: android
Dominant language
JavaScript
Stars
744
Forks
754
Avg merge
3d 4h
Merged PRs (30d)
1

Description

We use Uppy.io within our Cordova app to handle file uploads and have experienced a weird issue where we end up trying to send a File instance where the blob is stored in an array on the name attribute of the file...

https://github.com/transloadit/uppy/issues/1001

I'm guessing that the File instance we are trying to upload was created by calling File([some_blob], some_name) which isn't supported by the Cordova File class resulting in a weird File object (blob stored in name attribute) that can't be uploaded.

Not 100% sure about this, might be making some faulty assumptions.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked Uppy issue and the Cordova File plugin's File-construction entry points; no specific files or tests are named in the report. Verify how File([some_blob], some_name) is represented by Cordova and define completion as supporting the relevant constructor form without producing an uploadable File whose blob is stored on name.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.