27
Views
3
Comments
Solved
[FilePondUpload] Allow any image type files not working
filepondupload
Web icon
Forge asset by Stuart Harris
Application Type
Traditional Web

We are implementing an upload of files of only image type and I have used the action to include images only: 


However, when I try uploading image type files I only get errors:

Is there something I'm missing to only allow image files?  (I have also tried *.jpg, *.jpeg, etc as options with no success)

2021-06-02 20-50-04
Márcio Carvalho
Solution

Sorry for asking, Did you have a look at the documentation? https://www.outsystems.com/forge/Component_Documentation.aspx?ProjectId=5543&ProjectName=filepondupload

Can you try and see if it works?

"image/*"

Or even share an OML/replicate the problem in another OML to have a look?

2018-06-01 14-37-59
Rebecca Hall
Solution

Just using image/* using the CreateAcceptedFileTypes worked, but using CreateCommonAcceptedFileTypes with only Images set to True wasn't working.  

2021-06-02 20-50-04
Márcio Carvalho
Solution

Sorry for asking, Did you have a look at the documentation? https://www.outsystems.com/forge/Component_Documentation.aspx?ProjectId=5543&ProjectName=filepondupload

Can you try and see if it works?

"image/*"

Or even share an OML/replicate the problem in another OML to have a look?

2024-11-07 03-28-42
Stuart Harris
Champion

Thats strange, try removing the image/jpeg from FileType1. Otherwise just specify "image/*" directly without using CreateCommonAcceptedTypes.

2018-06-01 14-37-59
Rebecca Hall
Solution

Just using image/* using the CreateAcceptedFileTypes worked, but using CreateCommonAcceptedFileTypes with only Images set to True wasn't working.  

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.