DMXzone Server Connect Support Product Page

Answered

upload two file types

Asked 13 Aug 2019 11:53:37
1
has this question
13 Aug 2019 11:53:37 Dan Everton posted:
I want to upload a pdf AND an image

Using file upload can only see how to upload 1 file not two - this must be possible.

Thanks
Dan

Replies

Replied 14 Aug 2019 06:54:34
14 Aug 2019 06:54:34 Teodor Kuduschiev replied:
Hello Dan,
You need a multi file input to be able to select more than one file for upload ...
Replied 14 Aug 2019 07:40:01
14 Aug 2019 07:40:01 Dan Everton replied:
But I have a table with a field for PDF and one for Image so surely a multi input will upload multiple files to say a database with one input. Can you please elaborate on how best to achieve this?
Replied 14 Aug 2019 07:44:32
14 Aug 2019 07:44:32 Teodor Kuduschiev replied:
Well, your answer pretty much answers your question.
Add a second file input for the image and insert it in the database field you need.
Replied 14 Aug 2019 08:03:12
14 Aug 2019 08:03:12 Dan Everton replied:
Ok - But...

I can't add more than one upload action can I so how do i do it for two?
Replied 14 Aug 2019 08:05:21
14 Aug 2019 08:05:21 Teodor Kuduschiev replied:
You CAN add as many upload steps in your server action as you want, Dan.
Replied 14 Aug 2019 08:48:26
14 Aug 2019 08:48:26 Dan Everton replied:
i have worked it out - thanks for your time

Reply to this topic