Comments (4)
This is not a fault of the plugin.
HTTP status code 413 means your server is rejecting the request because the request size is too big. You need to configure your server to allow for larger content bodies. How to do this obviously depends on what backend technologies you are using.
https://tools.ietf.org/html/rfc7231#section-6.5.11
from cordova-plugin-file-transfer.
Initially i felt the same. But the file is uploading in ios 12 and android devices as well. Its the same API call which is happening in android and ios versions. We also increased the request size in the server side.
Apart from this the difference in ios 13 and ios 12 is that whichever video file is getting uploaded in ios 12 it doesn't trim the file in the image below.
But the video file path comes with "trim.12345.mov" in case of IOS 13.
Not sure how to solve this. Please help
from cordova-plugin-file-transfer.
Just going by the error. If you're still receiving a 413 http status code, then that means the server is still rejecting due to request body size exceeding the limit. You have to make sure you check all your nodes.
For example, if you had an Node express app behind an nginx webserver, then you need to configure both nginx AND express as they both have a default max content size. I don't know your backend infrastructure therefore I cannot really comment anymore on this.
Also different phones, on different versions may record videos differently, resulting in different file sizes.
trim.12345.mov
filename may or may not be another issue. Different iOS versions may handle files differently. So trim.12345.mov
may be valid on iOS 13.
from cordova-plugin-file-transfer.
Closing as we can't fix server limitations and 413 is one.
from cordova-plugin-file-transfer.
Related Issues (20)
- cordova-plugin-file-transfer is not working with cordova 11 HOT 2
- cordova plugin add cordova-plugin-file-transfer Not working HOT 2
- Compatibility with cordova-plugin-file@7 Android URLs HOT 14
- This plugin seems to be no longer supported HOT 1
- Cordova 11 > Android incompatible HOT 15
- With iOS, I think -file-transfer needs to be updated to work with -plugin-file v7 HOT 3
- how do i install 2.0.0-dev? HOT 1
- EPERM (Operation not permitted) HOT 1
- cordova-plugin-file-transfer is not working with ios HOT 2
- Longer downloads fail silently when app is backgrounded on iOS HOT 1
- Kindly advise if there is an alternative to FileTransfer / FileUpload for use with Capacitor 4. Thanks HOT 3
- Upload was not working in API level 32 in Android HOT 2
- Can't resolve 'cordova-plugin-file-transfer' HOT 1
- Undeprecate this plugin HOT 4
- The plugin 2.0.0-dev will not load on Android 6.0 and below. HOT 2
- Getting code 1 file exists on file download HOT 8
- `download` method failing on cordova / android platform with `java.lang.NullPointerException` exception HOT 6
- open failed: ENOENT (No such file or directory) HOT 2
- There is any way to download image from POST API
- NullPointerException When Downloading File HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-file-transfer.