Reputation: 7740
I need to build some client side code which follows this use case:
My current idea is to create another spot into phpMyAdmin to dictate file type, however I'd like to avoid that (because it depends on non-programmers/designers correctly identifying filetypes). Any thoughts?
Upvotes: 0
Views: 233
Reputation: 14873
If the client gets no more information than the id, then you've only got three options as far as I see:
404
s until you hit a 200
response and then use that (pretty nasty solution).<img src='/getimage?id=1' />
(much nicer solution, but isn't pure javascript which you imply is what you want).Upvotes: 1