Giter VIP home page Giter VIP logo

wester-chunk-upload's People

Contributors

derekalmond avatar gitbugr avatar hossein-zare avatar redsquirrelstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wester-chunk-upload's Issues

without headers

سلام وقت شما بخیر
ممنون بابت این پکیج کاربردی
من 2 تا مورد هست که مشکل دارم.

اول اینکه چجوری میشه اطلاعات header رو از طریق data ست کرد؟
اطلاعات form data:

chunkNumber: 1 chunkSize: 1048576 currentChunkSize: 606857 totalSize: 606857 identifier: 5646test.zip filename: test.zip relativePath: test.zip totalChunks: 1 file: (binary)

میخوام ببینم این امکان وجود داره؟

و دوم اینکه گزینه هست که ftp connection که از قبل وجود داره به کلاس بدیم تا نیاز نباشه اطلاعات ورود رو بهش بدیم؟

ممنون

Setting headers doesn't work

I tried to implement this library as solution for upload big files in my project. On every request there is 400 status code and "The data is invalid" response message. I tried to debug and below is what i found:

  1. When i post a file via the request with proper headers i can easly print them out by built in php getallheaders() function
    image
    image

  2. But when i try to create new object of class Chunk() from your library there is a step where headers are setting up. Inside the Header.php file there is setHeaders() function that calls getallheaders(), but there this function returns an empty array.
    image

  3. The validate method inside Validator.php checks the headers, but there are not set up headers from request and the ValidationException is thrown with "The data is invalid" message.

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.