Problem with Uploading to Drafts [solved]
-
It seems this plugin is no longer supported; but if anyone has this same problem, I hope this might be helpful.
I had a problem inserting image files into posts that had “Draft” status. Even if I had properly named and published the post before uploading images, as required, if I then set the post status to Draft, and then tried to insert images, the images would not be accessible in the Media Library. In the Media Library and in the “Insert Media” dialog, the thumbnails of those images just showed as gray squares.
I found the problem: in the plugin settings page, I had this set up in the “Build a path template” field:
/%post_type%/%permalink%This worked fine for published posts, making a path of, for example:
/uploads/page/page-name/file-name.jpgBut when in draft status, it would put them into a different folder, like this, instead:
/uploads/page/?post_type=page&p=673/file-name.jpgThat broke everything.
I had to substitute %postname% instead of %permalink% in the path template as:
/%post_type%/%postname%This solved the problem. Do not use %permalink% in your path template, or you will not be able to add images into posts with draft status!
- The topic ‘Problem with Uploading to Drafts [solved]’ is closed to new replies.