Git Product home page Git Product logo

dropzonephpchunks's People

Contributors

dodotree avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

dropzonephpchunks's Issues

How to use it?

Already confused of dropzone with php chunk upload, Please provide a full code of chunk upload

A few questions

First of all - thanks to everyone involved in contributing to these files. I am currently trying to customize them to fit my purposes and at the same time understand them. Below are the parts I find confusing despite pouring a lot of time into the code.

I would be super grateful if I could get some help understanding the following lines.

Loop through $FILES?:

foreach ($_FILES as $file) {

Isn't this loop only required if we have multiple file inputs in the same form as according to PHO Uploading multiple files? I am trying to understand if there is any other need to loop through the $FILES array since Dropzone seems Dropzone seems to handle multiple files (regardless of drag and drop or clicking and selecting files) as individual requests.

$file['filename']:

$filename = (isset($file['filename']) )? $file['filename'] : $file['name'];

Is $file['filename'] set by Dropzone or is it a custom variable used in this script? Despite extensive experiments I can't see $file['filename'] ever being populated with a value. PHP POST method uploads mentions $_FILES['userfile']['name'] but not filename so will this ever not be empty? What I am trying to get at is if there is a reason this row is not just simply $filename = $file['name'];

$tmp_file_path:

$tmp_file_path = $chunks_res['path'];

Why is $tmp_file_path updated here? The only place I can see it being used is in the function resumableUpload() which is called three lines before $tmp_file_path is updated. It seems a bit pointless to update a variable after it is already used, but this might have something to do with my first question.

is there an example?

hi, it looks really promising. Can you create a simple example so i can test it. Thanks

About DZUUID

I'm curious about DZUUID in chunk.php. It does not mention in official documentation. What is the function of the POST value (other POST values such as dztotalfilesize as well)? How should I implement them?

Also in chunk.js, params is not defined. Can you post your HTML as well?

Thanks for your help.

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.