You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The configuration is correctly injected and loaded by the library, but I need help to setup the "AttachmentService" call, which currently fail (as the service does'nt export any static method as it make use of the project Apollo-client instance).
Is there any way to call non-static method from the config ? If there's no workaround, how are we supposed to make our custom upload logics ?
Thanks for your help
The text was updated successfully, but these errors were encountered:
Hey @aurelienblais Not sure if you are still working on this but I figured I would follow up with you since I believe I figured out a solution for you.
In order to gain access to the attachmentSvc you would probably need to use a useFactory with deps rather then useValue
You could even assign the uploader as the entire attachmentSvc then have that service have a method titled uploadByFile (You would probably want to build an interface that you implement like OnInit to ensure any services built this way work as expected)
Hi,
I need some help with the Image Plugin configuration.
Here's my current "ImageModule" file
The configuration is correctly injected and loaded by the library, but I need help to setup the "AttachmentService" call, which currently fail (as the service does'nt export any static method as it make use of the project Apollo-client instance).
Is there any way to call non-static method from the config ? If there's no workaround, how are we supposed to make our custom upload logics ?
Thanks for your help
The text was updated successfully, but these errors were encountered: