GithubHelp home page GithubHelp logo

This bug is not fixed: examples/create-file.js returns error 'Please include file or file_url in your request' about publitio_js_sdk HOT 3 OPEN

TimPchelintsev avatar TimPchelintsev commented on July 22, 2024
This bug is not fixed: examples/create-file.js returns error 'Please include file or file_url in your request'

from publitio_js_sdk.

Comments (3)

TimPchelintsev avatar TimPchelintsev commented on July 22, 2024

It seems to work after removing "Content-Type": "multipart/form-data" header.

from publitio_js_sdk.

ob1y2k avatar ob1y2k commented on July 22, 2024

Did you updated to the latest js sdk version 1.1.5 ?

Also if file is >5GB you can get that error

And file must have .ext in the end

from publitio_js_sdk.

TimPchelintsev avatar TimPchelintsev commented on July 22, 2024

Hey @ob1y2k, sorry for late response.

Well, I am on the latest version and try to upload small video file with extension. As I mentioned, removing header makes it work. So now I successfully deployed this stuff. I am not very experienced in file uploads, so I cant say if this header removal will kick me later. At least I am able to show progress bar and upload files like 1GB. I spent some very uncomfortable time trying to fix bug though - as I copied documentation example and got error.

from publitio_js_sdk.

Related Issues (6)

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.