Image field / Multiple files / Multiple Images

Hi

I am giving users the ability to upload a Photo (from the camera or a saved file) OR a PDF through one file chooser.

I have it working nicely using a Multiple Files column (then encoding the file to base64 to upload through an API)

But my external application (accountancy software) can only accept 1 file - so if the user uploads 2 or 3 files, they are ignored.

I can not use the Image Field (which only allows one file to be uploaded at a time) as it does not allow you to upload PDFs for example.

Does anyone know of a way of limiting Multiple Files to only allow one file to be uploaded (unlikely) - or allowing the Image field to accept documents (also unlikely!)

Not a biggie - but thought I would ask,.

Andrew

If you don’t want to accept multiple files, then don’t use a multiple files column? :man_shrugging:

1 Like

Thanks - but what can I use instead?

Just a text or URL column type should work fine.

1 Like

Just to be sure -

Ahh got you - sometimes it’s the simplest things… :person_facepalming:

I thought the file picker had to write to a multiple files column (for some reason).

Of course it can write to an image column too (or URL column) which only allows one upload at a time.

doohhhh. Thanks Darren

PS - I was also thrown as you can’t upload a file to an image column through the builder - but you can through a file picker component (in my defence!)

2 Likes

You can do that, then switch the image column to text. I do this all the time.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.