Given that you're mentioning "editing the resource", I presume you're trying to attach files to the description. This only allows images, so it won't allow a PDF.
If you're trying to update the file that represents the resource, you'd do that through "post an update".