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

[3.1.2] Sending dynamic multipart_params in PLUpload.queue #1593

Open
djphaser opened this issue Jan 17, 2019 · 3 comments
Open

[3.1.2] Sending dynamic multipart_params in PLUpload.queue #1593

djphaser opened this issue Jan 17, 2019 · 3 comments

Comments

@djphaser
Copy link

djphaser commented Jan 17, 2019

Hello,

i have problem, see you my code on jsfiddle: http://jsfiddle.net/djphaser/03gw7zxo/12/

Select a color from the selectbox, select an image (click the Add files button), then click on the "start upload" button.

The photo is sent to the ajax-upload.php script. However, the "Color" parameter selected in the selectbox does not arrive there. Arrives parameter color that was defined at the outset.

Color parameter is not transferred to the php script.

Where is the problem?

@djphaser
Copy link
Author

Is not there someone who can help me?

@pszalko
Copy link

pszalko commented Apr 16, 2019

I think the option name was changed from multipart_params to params somewhere around 3.x version.

Try:

       up.settings.params = {
          "barva": $("#barva option:selected").val()

        };

After checking the code I see multipart_params are read at uploader construction time, but then updates are not propagated to new params option.

@Web-yue
Copy link

Web-yue commented Nov 21, 2019

thank you Pszalko ,i find this right way ,this example below is right ,it works on version 1.5
this.settings.multipart_params = {
"barva": 13
};

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

3 participants