There is a much easier fix. Go to settings, then miscellaneous. If your full url path is empty it may be confusing your system, even though it says that it is optional. I just copied the info from “store uploads in this folder” into my full url path and it fixed my problem.