lfiore / upld

PHP short URL image upload / image hosting script with user accounts feature
http://upld.uk
MIT License
47 stars 22 forks source link

Feature request: scan image folder #17

Open goldug opened 2 years ago

goldug commented 2 years ago

I was wondering, would it be possible to rescan the image folder? Hypothetically: if the database got corrupted and needed to be wiped, the images are still there but not showing up since they're not in the database. Also there's no database backup. Then it would be great if you could do like a scan that puts them into the database again. I guess all of them would then be assigned to one specific account (like the admin account), but it's better than having to re-upload everything again, getting new ID's and such.

lfiore commented 2 years ago

Yeah that's a pretty good idea actually

Not sure if it would be a good idea to assign them to the admin account though, probably just better as anonymous (or with the option to add to the admin account maybe)

goldug commented 2 years ago

Yeah, I just thought admin because, well... It's the admin 😏