Re: file uploads
| From: | Jeffry Killen | Date: | Wed, 01 Jul 2020 00:09:47 +0000 |
| Subject: | Re: file uploads | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327220@lists.php.net to get a copy of this message | ||
Yes, thank you;
I know I can upload more than one file with ONE file input field, with 'multi' attribute
set to true.
I was thinking that the MAX_FILE_SIZE field would only apply to one file input field.
But now I am thinking that it would apply to all the files sizes combined. So that means
only one of these hidden fields would be necessary.
Thank you;
JK
> On Jun 30, 2020, at 4:01 PM, Serge Fonville <serge.fonville@gmail.com> wrote:
>
> Hi,
>
> Can a single form element contain more than one file input?
>
> Does
> https://www.php.net/manual/en/features.file-upload.multiple.php
> answer your question?
>
> Kind regards/met vriendelijke groet,
>
> Serge Fonville
>
> http://www.sergefonville.nl
>
>
> Op wo 1 jul. 2020 om 00:46 schreef Jeffry Killen <jekillen@prodigy.net>:
> Hello;
>
> I have written php scripts to manage file uploads from
> HTML forms. But a question came up for me regarding
> file input type and forms.
>
> The question is: can a single form element contain more
> than one file input?
>
> The $_POST['file'] variable suggests not.
> Also if there is a file size limiting hidden field, it could only
> apply to one file input because of the hidden field name
> The hidden field name can't be different to associated with
> a specific file input... Unless, because the input field would
> have to be named scripts processing it could expect a limiting
> hidden field associated with it??
>
> I have been going back through my manuals and materials
> and doing some searching on the net. But haven't seen any
> thing that addresses or answers this question.
>
> Does anyone have thoughts and suggestions on this?
>
> Thank you for time and attention;
> JK