0

Updating images through login

Hello,my question is that assume I've a site, and there are some images there and i want to update them, though a login, i mean that, i login in my other site and update the images in the previous site, so Is there a way for updating it. Putting the images through other site and and updating them in other....

31st Dec 2020, 10:12 AM
simple boii
simple boii - avatar
4 Respuestas
+ 3
I think you'll need to use a database and back-end programming for this idea. Basically the image path is saved in a table in a database, then a back-end code customizes the value of 'src' attribute of the <img> element by the path saved in the table. You can use 'id' attribute in <img> element as a key to identify the relevant record containing the path to be used in 'src' attribute. Of course you'd also have to create some pages in your "other site" that allows you to update the images paths stored in the database.
31st Dec 2020, 10:32 AM
Ipang
+ 3
King, No need to store every image, you misunderstood me. You save the image URL in database, image can be anywhere on the net. The "other pages" I meant were back-end scripts in the "other site" hosting server that allows you to manipulate the table containing the image URLs. Select images from phone storage? no, files stored in phone are local files not accessible through the internet.
31st Dec 2020, 12:25 PM
Ipang
+ 1
Pliz the question is kind confusing and also missing facts.
31st Dec 2020, 10:23 AM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
+ 1
Ipang thanks, but yeah, if we create a other page, we'll have to store every image that have to be updated in pc. Is it possible to select the images directly from the phone storage of a user who wants to update a "fresh" image
31st Dec 2020, 12:02 PM
simple boii
simple boii - avatar