F
F
freeman02042021-09-02 11:15:35
PHP
freeman0204, 2021-09-02 11:15:35

How to attach uploaded photo via dropzone to send via PHPMailer?

I can take js src of the photo I loaded var imgName = $('.dz-image img').attr('src');
but it's cut to size and I can't attach it to the form in order to send it via PHPMailer as an attachment, how can I do that? 
If you don't use dropzone, just upload a photo via input file, and attach it like this 
$mail->addAttachment($_FILES['upload']['tmp_name'], $_FILES['upload']['name']); then everything works, but I need it through dropzone, how can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-09-02
@Stalker_RED

The question is rather chaotic, but I'll try to use telepathy and guess how it should sound:
"I don't understand where the file transferred by the dropzone was saved"
You must have copied the server part from somewhere. see what's inside.
If you don't understand, show the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question