Tag Info

Hot answers tagged

3

If you mean to upload file from local folder to document library than follow this method Create an application page in Microsoft Visual Studio 2010, , as described in Creating Application Pages for SharePoint. Add an HtmlInputFile control, a text box, a button to the form, and an FormDigest control to the page. <form id="Form1" method="post" ...


3

Useful link image compress that describes compressing images in image library. Following code will automatically compress image while uploading. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Utilities; using System.Drawing; using System.IO; namespace ...


2

Are you talking about the automatic resizes created when you upload an image to a picture library. Typically it will create an 160px max and 640px max and put them in the _t and _w folders of the library respectively. When this is done the resizes are always jpgs. When browsing from a picture library if you click on the thumbnail, then the resize, then it ...


2

SharePoint automatically creates two JPG images every time you upload image to a Picture Library: they are thumbnail image and web preview image. They're stored along with the original image in the Picture library. No in-place conversion happens: the image is converted only once during the initial upload process. SharePoint needs these extra images to ...


2

I uploaded image to a document library and stored the link to the image in the Field of type Hyperlink or Picture.


1

Please check the configuration of your Web-Applications and the App-Pools (that the same service account used for My Site and Intranet web app-pools). It's seems both worked with different Service Accounts for the Application Pool of the Webapplication.


1

You can do that with a little CSS. In your copy of the upload.aspx, add a content editor web part to the bottom of the page and add the following CSS snippet. You might want to play with it by removing and re-adding each line to get exactly what you want. This snippet will strip out a lot, it will only leave the title and the buttons, and will work on a ...


1

As far as I know, for uploading images you have to use Hyperlink or Picture type of column.


1

Yes, you can upload files to SharePoint. It's built in to the system, and the file you're uploading will reside in the document library you uploaded to. There is no need to develop a custom control for file uploading.


1

You can't hide Upload button with RichTextEditor, unless you use HideCUstomAction for hiding Upload button and then attach it to specific Document Library/ContentType etc. See example: http://www.ktskumar.com/blog/2010/10/hide-button-from-sharepoint-ribbon/


1

just to make it clear, you cant directly upload the image to the list! well thats what i know off!, you need two steps... 1) upload the image to an image library 2) update the list with the image url step one can be done through code by: SPContext.Current.Web.Files.Add(String.Concat(SPContext.Current.Web.Site.RootWeb.Url, path), stream, true); ...


1

Is interesting that it points by default to that library. Is it the only in the Site? Has anyone by mistake marked that as "Use as Site assets" (via Settings)? By default the Asset picker should look into the Web/Site Images library. Also, by default it remembers last successful selection, unless settings have been tampered with for the control. Have a ...


1

Looking at the Picture content type it does not have an thumbnail preview column in the content type. The Image content type does have a thumbnail preview column. Try adding the Image content type to your library. It should generate the thumbnail preview for you.


1

I would recommend you to go through these steps, Create an import PictureURL mapping Perform a full profile synchronization Run the Update-SPProfilePhotoStore PowerShell command Create an import PictureURL mapping Perform a full profile synchronization Or You can go through this awesome tutorial with pictures.


1

To your Visual Webpart Ascx page, add a File upload control: <asp:FileUpload ID="FileUploadAttachment" runat="server" /> And in your update function, you can upload the attachment by: SPListItem studentDetailsItem = SPContext.Current.Web.Lists["Student Details"].Items.Add(); studentDetailsItem["StudentID"] = Guid.NewGuid(); ...


1

To save the file you first need to get it to the server. You are now trying to open a file on the server using the path supplied by the client, basically your looking for the clients file on the server... Kind of explains why it works locally. If your using a ASP.Net FileUPload control one example is to do like this. if(FileUpload1.HasFile) { int fileLen ...


1

the _w is the web version of the image and has the url format you show above. If you keep clicking the images you should be able to view the original at the url you uploaded. Maybe try typing in /comunicacao/news/PublishingImages/01_rh_ricardo%20amorim.jpg and see if it works.



Only top voted, non community-wiki answers of a minimum length are eligible