Benny Halperin
Posts: 0
Joined: Wed Oct 02, 2013 8:13 am

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("Image"),
  • or in css background: url("...")
maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I create a new image?

Upload the image Image component.

Benny Halperin
Posts: 0
Joined: Wed Oct 02, 2013 8:13 am

How do I create a new image?

Can you please demo/explain or direct me to a tutorial/doc?
not sure I understand

Thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I create a new image?

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/...

Benny Halperin
Posts: 0
Joined: Wed Oct 02, 2013 8:13 am

How do I create a new image?

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).

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I create a new image?

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.

Benny Halperin
Posts: 0
Joined: Wed Oct 02, 2013 8:13 am

How do I create a new image?

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do I create a new image?

Hi Benny,

You can upload any files to Appery.io Database, not as assets: http://docs.appery.io/tutorials/uploa...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How do I create a new image?

Thanks for the feature suggestion.. I think it is a good idea to add images folder.

Return to “Issues”