This guide will teach you how to retrieve the permalink URL that is generated by WordPress for a file upload if you wish to reference it within, or outside of your WordPress install.
This guide will help you adjust your WordPress settings so that you can more proactively avoid URL changes to your WordPress posts when you make changes to how you organize your post content within.