Url encoding with attachments

When I create an attachment and set the url to a url that has a space, it does not store the value. I get null back. I am using the FormData API on the client, and I believe that decodes the URL when it converts to multipart/form-data (I’m trying to url encode) but I’m always seeing a space sent over the network. Would rather not construct a custom form builder.

I’m almost tempted to use another field to store the URL. I don’t really see anything in the docs about this.

Edit, the space don’t seem to be the problem. For some reason it is rejecting that URL value. I’m comparing it to similar POSTS and don’t really see anything out of the ordinary.

Problem it seems that it won’t allow a URL if you have an content for your attachment. I wanted to save a small file in two places. Seems resolved now.