Does anyone know if there is a way to make it so that the file drop box in apex only accepts powerpoint files? I can't find any information on this.This is the kind of drop box I am talking about:
Asked
Active
Viewed 93 times
0

jarlh
- 42,561
- 8
- 45
- 63

JaredCusick
- 43
- 8
-
1That looks like a custom solution. Assuming you mean file input, does this answer your question? [restrict file upload selection to specific types](https://stackoverflow.com/questions/7575482/restrict-file-upload-selection-to-specific-types) – evolutionxbox Mar 30 '22 at 14:08
-
@evolutionxbox - this is not a custom solution. In APEX 21.2 (not sure if available in earlier versions) if you make a Page Item of type File Browse... and under settings change Display As to Block Dropzone, it will appear just as it shows in the screenshot. – EJ Egyed Mar 30 '22 at 18:20
-
@EJEgyed it's custom since it does not exist as a part of standard HTML or WebAPIs – evolutionxbox Mar 31 '22 at 13:59
1 Answers
1
It depends on the plug-in that you use. For example, in my application, I am using this plugin and it has setting for accepted file types:
If the plugin does not have a setting for the accepted file types, you may need to observe DOM structure of the element and reach to <input>
tag of DOM by JQUERY and use accept attribute of HTML (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)

cengiz sevimli
- 1,461
- 8
- 19