Create Asset on Click (Possible?)


(Kieran@parracity) #1

Hi guys,


Is it possible to have a button that when clicked, creates an image asset with a default jpg as the actual image?

Just one click of a button. From there, I could have a user directed to the asset editing screen to add metadata, etc.



Just wondering if it's been done before?


(Ashish Karelia) #2

[quote]
Hi guys,



Is it possible to have a button that when clicked, creates an image asset with a default jpg as the actual image?

Just one click of a button. From there, I could have a user directed to the asset editing screen to add metadata, etc.



Just wondering if it's been done before?

[/quote]



Hi,

This should be absolutely possible using the JS API. There is a particular function createFileasset() which should help you achieve what you are trying to do.



Ash