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.

How can I preview an image from a image url in admin edit mode?

See original GitHub issue
<tt>
Photo.add({
    name: { type: String, required: true },
    publishedDate: { type: Date, default: Date.now },
    url:{
        type: Types.Url,
        format: function(url){
            return url;
        }
    }
   });
</tt>

Url is a link that can directly access through the browser. Now, I can only display this link and view that image by clicking the link but I want to preview it in the item list rather than clicking it the view. How can I do it? Thank you.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Pei116commented, Feb 28, 2018

Any updates here?

0reactions
tomtom87commented, Aug 13, 2018

Looking for a way to do this also, if anyone has any ideas.

@ZeroCho I think because it’s using Storage class now, format is deprecated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Admin Show Image from Imagefield - Stack Overflow
My Solution. Assuming that my ImageField attribute name on the model is "file", my template override to implement image previews would be similar...
Read more >
Image preview on edit mod ? · Issue #2416 · z-song/laravel ...
@taimaiduc Check your admin disk configuration in config/filesystem.php , it should have a url key like: 'admin' => [ 'driver' => 'local' ...
Read more >
6. Showing image previews - Sonata Project
This is a full working example of one way to add image previews to your create and edit views in SonataAdmin. 6.1. Pre-requisites¶....
Read more >
Add a picture or image file to a SharePoint page
Add an image by using the Page Image field control · Browse to the page to which you want to add an image,...
Read more >
Live site images look different than admin/preview
Hello! My website is all of a sudden displaying certain images as square instead of round. I have disabled all plugins and did...
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