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

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
p.shirykalova  
#21 Posted : Monday, November 28, 2011 9:55:50 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hi Michael,

Again, sorry for this delay.

Let's think we would like to send 2 additional fields with our request (say field1=value1 and field2=value2). The request should be the following:
Code:
<a href="aurup:?
uploadUrl=http%3A%2F%2Fpolina.main.aurigma.com%2Fipad2Onefile%2Fupload.aspx
&licenseKey=79FF4-00000-0000E-60DE5-0E225-57428A
&fields=field1%3Dvalue1%3Bfield2%3Dvalue2">Upload Images</a>

On the server side if you want to use the names of these fields to construct the name of saved file, please use this code:
Code:
For i As Integer = 0 To fileCount - 1
	Dim path As String = System.IO.Path.Combine(mediaFolder, Request.Form("SourceName_" & i))
	Dim filename() As String = Request.Form("SourceName_" & i).Split(".")
						
	path = path.Replace(filename(0), Request.Form("field1") & Request.Form("field2") & i)
	Request.Files("File0_" & i).SaveAs(path)
Next

Edited by user Monday, November 28, 2011 9:56:37 PM(UTC)  | Reason: Not specified

Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#22 Posted : Monday, December 5, 2011 6:49:24 AM(UTC)
MMichael

Rank: Member

Groups: Member
Joined: 11/14/2011(UTC)
Posts: 11

Hello Pauline, I mange to complete this task using parameter into uploadUrl string exp.
Code:
<a href="aurup:?uploadUrl=http%3A%2F%2F10.1.0.59%2Fupload.aspx?sid%3D<%Response.Write(Session("hash"))%>&returnUrl=http%3A%2F%2F10.1.0.59%2FZwrotyAdd.aspx&redirectUrl=http%3A%2F%2F10.1.0.59%2FZwrotyAdd.aspx&uploadTimeOut=60&redirectDelay=0&licenseKey=79FF1-00012-13490-00008-96FA2-F4E6D8&fields=type%3Dzwrot%3Bsid%3D<%Response.Write(Session("hash"))%>">wskaż plik do wysłania...</a>


It seems to work fine, but there is another issue. After using "New Photo" option i get "upload failure" erro HTTP code 5xxx.
However there is no problem when using "From Library".

I'm using Aurigma Up v.1.2 on Ipad2.
p.shirykalova  
#23 Posted : Monday, December 5, 2011 9:26:53 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hi Michael,

Could you please try the same feature on our demo i.aurigma.com?
Best regards,
Pauline Shirykalova
Aurigma Technical Support
Users browsing this topic
2 Pages<12
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.