Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change filename before upload #108

Open
jca0310 opened this issue Nov 29, 2019 · 1 comment
Open

Change filename before upload #108

jca0310 opened this issue Nov 29, 2019 · 1 comment

Comments

@jca0310
Copy link

jca0310 commented Nov 29, 2019

Hello,

I'd like to change the name of my uploaded video before to send it.Is it something possible ?

Thank you.

@tibor8472
Copy link

tibor8472 commented Apr 10, 2020

Probably too late, but I met with this problem when I wanted to upload images.
Added a function to extraData field in configuration, what I read a text input with.
In server side (php) I read out extra data from request header and create a folder with same name (or could rename the file)
Text input:
<input type="text" class="col-sm-12 col-md-12 col-lg-8 col-xl-8" placeholder="Write here the new name" id="uploadImgText"/>
Configuration:
$('#drop-zone').dmUploader({ /*other configuration fields*/ extraData: function () { return {"extrafield": $('#uploadImgText').val()}; } });
Server side (php):
<?php /*other php code*/ if (filter_input(INPUT_POST, "extrafield") != false) { $input = filter_input(INPUT_POST, "extrafield"); } /*do something with $input*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants