Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full path images not uploaded to Wordpress blog #546

Closed
matthewdw opened this issue Jul 1, 2019 · 3 comments
Closed

Full path images not uploaded to Wordpress blog #546

matthewdw opened this issue Jul 1, 2019 · 3 comments
Labels

Comments

@matthewdw
Copy link

I think this is actually a duplicate of the following bug but which I can reproduce -
#215

Create a .md document such as this -

# Testing for image upload
![test](file://C:/Users/matth/Documents/test.png)

When uploading to Wordpress the uploaded document reads as follows and the image is not uploaded at all.

<p id="pragma-line-0"><img src="/Users/matth/Documents/test.png" alt="test"></p>
@matthewdw
Copy link
Author

Have to say, I had trouble reproducing this after using the product for a couple of days because all of the other (much more sensible) methods of embedding images work. I can only think I must have typed in the full path manually when I hit the bug originally. I think it all works fine when using the buttons to embed images. So wouldn't blame you for closing this as "user being stupid".

@RickStrahl RickStrahl added the bug label Jul 2, 2019
@RickStrahl
Copy link
Owner

That still looks like a bug to me. There's no reason that MM shouldn't be able to resolve a local path and upload it the same way as a relative path. In fact it should be easier...

@RickStrahl
Copy link
Owner

I know it's been a half a lifetime, but this should be fixed now.

Issue was that the file:/// links were not properly getting translated to local files, so the files were not resolving. This was an issue for both Wordpress and MetaWeblog and likely is for Medium as well (not checked yet).

IAC, it's working as of 3.5.16.4

All that said, it's a bad idea to link content that is in hard coded paths. MM tries very hard to nudge you into copying any images into your project folder near the image so you can use a relative link. This will ensure that your content is self contained if you move to another machine etc.

The Image dialog prompts for local copy of files outside of the project and more than a few levels back as do file drags from the folder browser or Explorer. But... you can ignore and continue to embed an absolute file link and that will now work for image uploads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants