Error with the File Type in Application Builder

Are you using our SaaS platform (Baserow.io) or self-hosting Baserow?

SaaS

What do you need help with?

Hello everyone,

I have a problem that I’m not sure whether it’s a limitation of Baserow or my own mistake:

When setting a File Type in Baserow, for example PDF, if the user uploads another format (e.g., an MP4 video), the form continues and proceeds to the next page. Shouldn’t it display an error on the File field indicating an unsupported file and prevent moving to the next page?

Thank you very much in advance for the response.

Hi @khalil.io,

In your “File types” field, what are you setting for the pdf mime type? If I enter “pdf”, then I’m not given the ability to upload anything except PDFs.

I can see a small issue we have with full mime type names, if I enter “application/pdf” then it’s not correctly limiting me to just PDFs.

Cheers,

Peter Evans

Hi @picklepete,

I tried configuring it again and encountered the following:

  1. The File type is set to pdf.

  2. When selecting files, the filter works correctly and only shows PDF files.

  3. However, if a file of another format is dragged and dropped, the form still proceeds despite the error notification. The expected behavior is that it should not advance to the next page until valid data is entered.

Thanks very much for your response!

Hello @khalil.io!

You’re totally right, if you have a form with actions such as:

  • Create a row (which stores the uploaded files)
  • Open a page

Ideally, if the first action raises an error, you should have the ability to not continue to “Open a page”, but we don’t currently support this behaviour. In application builder, the workflow actions run sequentially, regardless of the success of the previous action.

It’s possible that in the future we will introduce a “router action”, like in the automation builder, inside the application builder. If such a feature was introduced, you could decide to only advance to the “open page” action if the “create row” is successful.

I hope this helps, please accept my apologies for the inconvenience!

Cheers,

Peter Evans

1 Like