Where is the detect Images as Files option in the First Spirit API ?
Author: lleppert
Publication Date: 9/28/2023 8:43
Hello everyone,
I'm trying to find the detect images as files option which is located within the Server Manager. However, I'm having trouble navigating the API documentation to locate the relevant functions or methods for this task.
could you please help me on how to find the right interfaces in the API ?
Thank you in advance for your help!
Best regards,
lleppert
-
Author: Windmüller - 9/28/2023 9:42
I am not quite sure which ServerManager option you are referring to. The API provides the method Media#getType, does that help?
0 -
Author: lleppert - 9/28/2023 10:38
In the Edit Project Menu you find the Compatibility option, and within, the final option is Detect Images as a File.
and i want to change this using the API
Hope that helps
0 -
Author: Windmüller - 9/28/2023 13:38
There is an existing agent called "MediaConstraintsAgent" with a method "setFileExtensions". However, that agent is currently not part of the stable API and may change without notice.
If you require stable API for this use case, please open a support ticket describing your use case.
0 -
Author: lleppert - 9/28/2023 15:09
Thank you it works now
0 -
Author: Windmüller - 9/28/2023 15:53
You are welcome.
But please take my advise seriously: If your code is used in a productive environment, it should use the stable API only. Otherwise an update of FirstSpirit may break your code.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
5 commentaires