Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
Hi
I am using asp.net and setting the aurigma properties something like mentioned below but still i can upload more then two images please help asap:
public static string BuildUrl(UploadMode uploadMode, string uploadUrl, string redirectUrl, string returnUrl, bool appendSlashes) { StringBuilder sb = new StringBuilder(); sb.Append("aurup:"); if (appendSlashes) { sb.Append("//"); } sb.Append("?"); sb.AppendFormat("uploadUrl={0}", Uri.EscapeDataString(GetAbsoluteUrl(uploadUrl))); sb.Append("&"); sb.AppendFormat("redirectUrl={0}", Uri.EscapeDataString(GetAbsoluteUrl(redirectUrl))); sb.Append("&"); sb.AppendFormat("returnUrl={0}", Uri.EscapeDataString(GetAbsoluteUrl(returnUrl))); sb.Append("&");
if (uploadMode == UploadMode.FilesWithNoThumbnails) { sb.Append(@"imageMode=mode=source,autorotate=true;"); sb.Append("&"); sb.Append("videoMode=mode=source;"); } else if (uploadMode == UploadMode.PhotosWithThumbnails) { sb.Append(@"imageMode=mode=source,autorotate=true;mode=thumbnail,autorotate=true,size=110,resizeQuality=high; mode=thumbnail,autorotate=true,size=200,resizeQuality=high"); sb.Append("&"); sb.Append("videoMode=off"); } else if (uploadMode == UploadMode.VideoWithThumbnails) { sb.Append("imageMode=off"); sb.Append("&"); sb.Append("videoMode=mode=source;mode=thumbnail,size=110,resizeQuality=high;mode=thumbnail,size=200,resizeQuality=high"); }
sb.Append("&"); sb.Append("uploadTimeOut=300"); sb.Append("&"); sb.Append("multiSelection=false"); sb.Append("&"); sb.Append("minImageCount=0"); sb.Append("&"); sb.Append("maxImageCount=1"); sb.Append("&"); //sb.AppendFormat("licenseKey={0}", Uri.EscapeDataString("79FF4-00133-C7DAA-30F08-9B787-0B160D")); sb.AppendFormat("licenseKey={0}", Uri.EscapeDataString(Glassmill.Common.Utils.GetStringFromConfig(SRR.Core.Common.AurigmaUpkey)));
AddSessionCookie(sb);
return sb.ToString(); }
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 12/19/2012(UTC) Posts: 164
Was thanked: 8 time(s) in 8 post(s)
|
Hi,
Could you please share me result URL string, which is returned by the method so I can test it locally? |
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
hi below is the url I also want to restrinck the file extension and file size please help :
Aurigma URL:aurup:?uploadUrl=http%3A%2F%2Flocalhost%3A22053%2FMobile%2FGallery%2FUpload&redirectUrl=http%3A%2F%2Flocalhost%3A22053%2FMobile%2FGallery%2FPhotoCrop&returnUrl=http%3A%2F%2Flocalhost%3A22053%2FMobile%2F&imageMode=mode=source,autorotate=true;&videoMode=mode=source;&uploadTimeOut=300&multiSelection=false&minImageCount=0&maxImageCount=1&licenseKey=79FF4-00133-C7DAA-30F08-9B787-0B160D&cookies=ASP.NET_SessionId%3Dg1c4svpcjqdrnmkxyeflqj1a
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
just to add on i am using below string for mode to be uploaded and want to make sure only .jpg and . png must be allowed with max size of 1 mb
if (uploadMode == UploadMode.FilesWithNoThumbnails) //comment for this line :here FilesWithNoThumbnails = 0 { sb.Append(@"imageMode=mode=source,autorotate=true;"); sb.Append("&"); sb.Append("videoMode=mode=source;"); }
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
Please help what should i add to restricting specific file extensions only .jpg and . png everything else start working by passing : sb.Append("minFileount=0"); sb.Append("&"); sb.Append("maxFileCount=1");
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 12/19/2012(UTC) Posts: 164
Was thanked: 8 time(s) in 8 post(s)
|
Hi,
Unfortunately, there is no the filter, which would create an some masks for uploading only jpg or png images. Also, there is no mask for max upload file size parameter.
Regarding the problem with maxFileCount parameter, I have submitted it to our bug tracker and as soon as it is resolved, I will keep you updated.
I am sorry for the inconvenience. |
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
Hi Is there any way i can show custom error message if some1 try to upload otehr then .jpg or .png?
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 12/19/2012(UTC) Posts: 164
Was thanked: 8 time(s) in 8 post(s)
|
Hi, Unfortunately there is no way in Aurigma Up to show custom message. Edited by moderator Thursday, May 30, 2013 3:08:07 AM(UTC)
| Reason: Not specified |
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
we are about to purchase so is there any specific version which fulfill all my needs in this thread?
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 12/19/2012(UTC) Posts: 164
Was thanked: 8 time(s) in 8 post(s)
|
Quote:we are about to purchase so is there any specific version which fulfill all my needs in this thread? Yes, exactly. |
Best regards, Vitaly Kustov Aurigma Technical Support
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/21/2013(UTC) Posts: 11
|
plz suggest which version and what all it will support as per this thread?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Hello,
Perhaps there is a misunderstanding.
At this moment we don't have a mobile uploader which allows you to set the file mask. You can specify that you want to upload images only or videos only (or both), but you cannot specify that you want to upload, say, *.jpg while not *.gif.
To tell the truth I am not sure why you may need it - on practice 99.9% of images on a mobile device are photos captured by a camera on a device (i.e. JPEGs). Or you have some other use case?
|
|
|
|
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.