Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
planetpankaj  
#1 Posted : Monday, May 27, 2013 8:09:24 AM(UTC)
planetpankaj

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();
}
vitaly  
#2 Posted : Monday, May 27, 2013 11:25:03 PM(UTC)
vitaly

Rank: Advanced Member

Groups:
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
planetpankaj  
#3 Posted : Tuesday, May 28, 2013 4:26:06 AM(UTC)
planetpankaj

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
planetpankaj  
#4 Posted : Tuesday, May 28, 2013 9:03:47 PM(UTC)
planetpankaj

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;");
}
planetpankaj  
#5 Posted : Tuesday, May 28, 2013 9:35:18 PM(UTC)
planetpankaj

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");
vitaly  
#6 Posted : Wednesday, May 29, 2013 1:04:45 AM(UTC)
vitaly

Rank: Advanced Member

Groups:
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
planetpankaj  
#7 Posted : Wednesday, May 29, 2013 2:59:56 AM(UTC)
planetpankaj

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?
vitaly  
#8 Posted : Wednesday, May 29, 2013 3:22:13 AM(UTC)
vitaly

Rank: Advanced Member

Groups:
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
planetpankaj  
#9 Posted : Wednesday, May 29, 2013 3:25:02 AM(UTC)
planetpankaj

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?
vitaly  
#10 Posted : Wednesday, May 29, 2013 3:37:36 AM(UTC)
vitaly

Rank: Advanced Member

Groups:
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
planetpankaj  
#11 Posted : Wednesday, May 29, 2013 3:40:50 AM(UTC)
planetpankaj

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?
Andrew  
#12 Posted : Thursday, May 30, 2013 3:15:00 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 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?
Users browsing this topic
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.