Rank: Newbie
Groups: Member
Joined: 1/2/2012(UTC) Posts: 6
Thanks: 1 times
|
Congratulations on this product. It is just perfect for one of the projects I am working on I have had a go using the .Net samples and they work fine except that after uploading the files the gallery.aspx page can't display the images This is the source code from the generated gallery.aspx page <li class="item"><a data-rel="dialog" href="../ShowImage.aspx?image=%2F%2FUploadedFiles%2F%2FUploadedFile27.jpg&title=UploadedFile27.jpg"> <img class="preview" alt="UploadedFile27.jpg" title="UploadedFile27.jpg" src="//UploadedFiles//Thumbnails/UploadedFile27.jpg.jpg" /> </a></li> Looks like the generated src is incorrect How do I fix this
|
|
|
|
Rank: Advanced Member
Groups: Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, I tried to replicate your problem locally. However, I could not get the same result as you did. I tested standard sample which just downloaded from Aurigma Up site. I tested the site on mu iPad. After uploading image was displayed. I checked the UploadedFiles\Thumbnails\ folder. It contains small thumbnail of my image with name UploadedFile0.jpg.jpg. It is okay. Please try to test again. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Try to check permissions on your server side. Probably the script which receives HTTP POST requests and saves files to a folder doesn't have enough privileges to write to file system. |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 1/2/2012(UTC) Posts: 6
Thanks: 1 times
|
Dmitry wrote:Try to check permissions on your server side. Probably the script which receives HTTP POST requests and saves files to a folder doesn't have enough privileges to write to file system. The permission are OK and I can see the upload images on the server
|
|
|
|
Rank: Advanced Member
Groups: Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, Quote:The permission are OK and I can see the upload images on the server There can be set write permission, but not read one. Please check it once again. Also, check whether small thumbnails are located in the UploadedFiles/Thumbnails/ folder. If it is possible, please send me your complete sample application so that I will be able to test it myself. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 2/12/2012(UTC) Posts: 1
|
# Replace the Gallery.aspx with the following code # there is double // on the Image and on the Link the replace should take care of it. # .Replace("%2F%2F", "%2F") and # .Replace("//", "/") <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gallery.aspx.cs" Inherits="BasicDemo_Gallery" %> <%@ Import Namespace="System.Collections.Generic" %> <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server"> <div> <a href="Default.aspx" data-role="button" data-inline="true">Upload again</a></div> <div class="gallery"> <ul class="gallery-image-list"> <asp:Repeater ID="UploadedFilesRepeater" runat="server"> <ItemTemplate> <li class="item"><a data-rel="dialog" href="<%# GetViewImageUrl((Dictionary<string, string>)Container.DataItem).Replace("%2F%2F", "%2F") %>"> <img class="preview" alt="<%# Server.HtmlEncode(((Dictionary<string, string>)(Container.DataItem))["name"])%>" title="<%# Server.HtmlEncode(((Dictionary<string, string>)(Container.DataItem))["name"])%>" src="<%# ((Dictionary<string, string>)(Container.DataItem))["thumbnailUrl0"].Replace("//", "/") %>" /> </a></li> </ItemTemplate> </asp:Repeater> </ul> </div> </asp:Content>
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.