question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove URL input fields for uploads and `fileStorage: false` config

See original GitHub issue

We’d like to remove the URL input option from our upload components to simplify the UI. This will have a knock-on effect of making the fileStorage: false config in Ghost rather useless as setting that config will make it impossible for users to change any of the image settings.

fileStorage: false predates the introduction of storage adapters in Ghost and was introduced as an escape valve for users not being able to use local storage. Now that storage adapters are available there aren’t many use-cases for completely disabling file storage. Keeping all file uploads in ghost-controlled storage will also help further down the line as we introduce advanced media handling and optimisation.

  • remove URL input states from the uploader components in Ghost-Admin @kevinansfield
  • remove fileStorage conditionals in Ghost-Admin @kevinansfield
  • remove option to specify fileStorage: false in Ghost

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

12reactions
triestpacommented, Jul 22, 2017

I agree with the concerns raised here. Being able to attach images as links is an essential feature in Ghost.

Here are the main reasons -

  1. Using external image links allows for seamless transitions between local, staging, and production environments. Storing the images on each local file system will make it a mess to keep these environments in sync with each other.
  2. All of my blog images are served from an S3 bucket behind a Cloudflare CDN, which makes them easier to manage and reuse, and reduces the I/O load on the blog server.
  3. In order to scale the blog horizontally across multiple instances, it is essential for persistent content to be stored separately from the source code. Keeping a local image directory in-sync across multiple load-balanced servers will be difficult and impractical.

I understand that there are plans to add a complete in-app media management and optimization system, which I think is great. However, this system does not exist yet, and removing the option to link images is a major regression in the simplicity and flexibility that makes Ghost a great content platform.

@kevinansfield maybe it would help if I understood the reasoning behind the original decision. Why would allowing image URL linking limit the future potential of an integrated media manager? Shouldn’t the database still store the image reference as a URL either way? Won’t any predicted compatibility issues emerge in the future regardless of the UI changes, since 1.0 still supports JSON content imports with non-local image URLs?

Thank you for the hard work in preparing 1.0 for release, and for considering the above concerns.

10reactions
pascalandycommented, Jul 4, 2017

I asked on Slack and I would like to bring my question here.


I consider myself a Ghost power user. I really enjoy the fact that we can paste an URL when adding a picture with Ghost<=0.11.x.

This feature is REALLY useful for pictures in the header as I tend to re-use the same picture over many post & pages.

My question: How can we re-use header pictures across multiple pages/posts as we can’t paste a URL anymore?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload files with Cloud Storage on Web - Firebase
Cloud Storage for Firebase allows you to quickly and easily upload files to a Cloud Storage bucket provided and managed by Firebase.
Read more >
Active Storage Overview - Rails Edge Guides
Active Storage facilitates uploading files to a cloud storage service like Amazon S3, Google Cloud Storage, or Microsoft Azure Storage and attaching those...
Read more >
CarrierWave - GitHub
Removing uploaded files ... If you want to remove a previously uploaded file on a mounted uploader, you can easily add a checkbox...
Read more >
Git Large File Storage (LFS) - GitLab Docs
If you performed the git clone command with a SSH URL, you have to enter your ... If batch = false is set...
Read more >
Unrestricted File Upload - OWASP Foundation
Unrestricted File Upload on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found