File upload component does not load excel files: xls, xlsx

Hi, using latest version,
I implemented < upload > for csv files with no problem using self written UploadHandler until JMIX handler wrapper for upload/reject/removed/succeeded … are on board again.

BUT,
.xls, .xlsx, application/vnd.ms-excel and other mime-type for spreadsheets/Excel always run to ‘rejected’.

Any idea,
thanks in advance,

best regards
HP

Hello!

Did you check your logs for errors? Maybe there are errors in web browser console?

I’ve implemented a simple temporary storage upload handler according to the Vaadin documentation: Handling file uploads in the Upload component | Vaadin, and XLSX files are uploaded successfully.

You can find an example in the demo project: temp-upload.zip (118.0 KB)

If you’re still have issues, please share your solution so that we can help.

1 Like

Interesting links. I just checked Vaadin link but didn’t find option to use TemporaryFileUploadHandler in Jmix xml file.

Yes, the new API is not available from XML. We are still migrating the upload/download API introduced in Vaadin 24.8+. After successful migration, we will try to port these changes to Jmix 2.7.