How do I create a new image?
Just like creating new javascript and css?
I want to add an image to the app, and use it later e.g.
- adding markup dynamically as in $("...").append("
"),
- or in css background: url("...")
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Just like creating new javascript and css?
I want to add an image to the app, and use it later e.g.
Upload the image Image component.
Can you please demo/explain or direct me to a tutorial/doc?
not sure I understand
Thanks
Drag and drop the Image component.. in Properties you can upload the actual image.
To access the image by URL: http://docs.appery.io/javascript-api/...
I can see that, but it means I will have an image on the page in design and I don't want it. All I want is an image in the folder available if I need.
I also want to be independent of Appery API, and I can do that by having the img tag src attribute set to "files/views/assets/image/myimage.png".
All I'm missing (so I think) is a mechanism to add an image resource to the app, to be available under the image folder (sibling of js folder).
Once you upload the image, you can remove the Image component from the screen. We are adding an option to open the Media Manager and upload an image directly in the next release.
Yes, you can set the URL directly as well.
Exactly what I did... just thought there might be a "right" way.
Anyway so glad to hear that your road map includes adding media like images (and others too? e.g. videos).
I think then the project tree should have another folder called Images (like JavaScript and CSS) so I can see the uploaded media like any other asset.
One last thing: after I deleted the image from the page, the asset remained. But then to replace the image with another (a new version of the image, say), I need to go directly to the assets and delete the image, which is not recommended, and actually I'm not sure will work at all.
And a BIG thank you for the great support, great product, and road map.
Hi Benny,
You can upload any files to Appery.io Database, not as assets: http://docs.appery.io/tutorials/uploa...
Thanks for the feature suggestion.. I think it is a good idea to add images folder.