Downloading attachments inside in app from a web view


#1

When you upload an attachment to a post your get a URL with an alphanumeric filename.

Is there some way to decode the original file name or is this just random? Is there any way to get the uploaded file name?

My app has a web view that shows my discourse and lets the user open the file in the app but tapping the link. However I don’t see a way to get the original file name for that file.

The other problem I have is when you return to the forums in the app after doing this the activity spinner won’t go away.


(mountain) #2

The random filename is from the image’s sha1 hash.

This was discussed previously.

@cpradio mentioned submitting a PR that may help; unsure the conclusion to that.


(Jeff Atwood) #3