Solved

Image link in SharePoint that opens download dialog box instead of opening image in browser

Posted on 2014-10-30
11
237 Views
Last Modified: 2014-11-10
I'm creating a page for our company logos and want to make two links:  one that opens the image in the browser and one that opens the download option.  This option is already available on the image's page (see below).  The link I've pointed out opens a download dialog box and the image, when clicked, opens the image in a browser.  I can't seem to get this to work.  I even tried viewing the source of the page in the image and tried to move the <td> part with the link into the edit html of my table and nothing.  Any help is greatly appreciated!  
image pageforum.png
0
Comment
Question by:HSI_guelph
  • 6
  • 4
11 Comments
 
LVL 9

Expert Comment

by:macarrillo1
ID: 40416488
Where is the image stored?
Did you upload the original image by using
Site Actions|Manage Content and Structure|Site Collection Images
Then Clicking New and uploading the image?
Once uploaded click the dropdown on the image file and select 'Open in new window'.
then use this url in your link.
0
 

Author Comment

by:HSI_guelph
ID: 40421729
I didn't upload the images that way.  I can't find Manage Content and Structure under Site Actions.  Not sure if it is available in Foundations but I'm looking into it.  I'll let you know if I find a way to get to it.  Thanks for the tip!
0
 

Author Comment

by:HSI_guelph
ID: 40421756
From what I can see those options are not available in SharePoint Foundation :(
Is there another way to get a download link?
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 9

Expert Comment

by:macarrillo1
ID: 40422035
If you have Site Collection permissions you should see at the top level of your portal. Under 'site actions' you should see 'Manage Content and Structure' below 'More Options' and above 'View All Site Content'.

Do you have Site Collection Administration permissions?

To check if you have Site Collection Permissions. Again at the top level; click 'Site Settings' and click 'Site Permissions'. On the tool bar you will see 'Site Collection Administrators'. If this is grayed out, you don't have permissions.  If you can click into it you can likely add your self as a site collection administrator.
0
 

Author Comment

by:HSI_guelph
ID: 40422651
I do not have Full Control so I logged on as an administrator but I still don't see an option over View All Site Content (it is the first option under the grey dotted line).  I've read other articles saying I need to turn on Office SharePoint Server Publishing Infrastructure but I don't see that as an option under Site Collection Administration > Site Collection features.
0
 
LVL 9

Expert Comment

by:macarrillo1
ID: 40422716
Looks like I have miss guided you; Office SharePoint Server Publishing Infrastructure is only available in Standard or better.  This is not available in Foundation.

I think you stated that you are using SharePoint Foundation.
0
 

Author Comment

by:HSI_guelph
ID: 40423939
Yup but any suggestions are greatly appreciated so thank you for replying!  I've dropped that part of the page for now and will revisit it at a later date.
0
 
LVL 9

Expert Comment

by:macarrillo1
ID: 40424728
I may have misunderstood the problem.  Is the problem that you are getting prompted to download a file and you don't want to? Or that you want to download a file and it is not working?

If the later; Check to see if there is a problem with that file type being blocked.

Central Admin|Security|General Security|Define Blocked file Types
Select the appropiate web application from the dropdown.
Check to see if 'jpg' is in the list.  If so then it is being blocked.
0
 

Author Comment

by:HSI_guelph
ID: 40424782
What I wanted to do is make a link that doesn't open the image in the browser but asks if you want to Open or Save it.
0
 
LVL 6

Accepted Solution

by:
Rafael I earned 500 total points
ID: 40433520
sorry to be the bearer of bad news, but it can't really be done.  One of the most basic functions for Internet Explorer and any other browser is to open image files as quickly and as efficient as possible.  Microsoft is also making Internet Explorer do the same for office files, which is why it is pushing Office365, which will make word, excel, and other files editable online.  So to get a dialog box from an image would mean having to develop code that handles and overrides clicking and file opening events for your entire site.

The only other way to force a dialog would be to host your images on a server that can only be displayed with a flash app, or a java applet, that fetches the image to display, and then creates a download link for people that want to save the image, but that is way beyond the scope of your site, and pretty expensive.
0
 

Author Closing Comment

by:HSI_guelph
ID: 40433535
Ok thanks for the replies!  It's weird how that option is available on the image's page (page created when I uploaded it into the library) and I can't recreate it.  I figured it was some code under the link since the link to display the image and the link to download the image are the same.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now