Code Monkey home page Code Monkey logo

Comments (4)

breautek avatar breautek commented on May 25, 2024

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.

officerreports avatar officerreports commented on May 25, 2024

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.

IMG_3549

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.

breautek avatar breautek commented on May 25, 2024

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.

timbru31 avatar timbru31 commented on May 25, 2024

Closing as we can't fix server limitations and 413 is one.

from cordova-plugin-file-transfer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.