Tag Info

Hot answers tagged

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 ...


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" ...


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 ...


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

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