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

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
foobaron  
#1 Posted : Tuesday, September 20, 2011 3:14:49 PM(UTC)
foobaron

Rank: Newbie

Groups: Member
Joined: 9/20/2011(UTC)
Posts: 1

Hi,
I am trying to use Aurigma Up in an in-class answer submission system I am developing for the UCLA computer science course I am teaching. (The students submit their answers to questions in class by uploading a file, and I want to support the iPhone as well as laptops and Android phones). The problem is there is no internet in the classroom; I simply create a private network using a wifi router with my laptop (running the web server) plugged into the router by ethernet cable. The students then connect to the private wifi network and point their browser at my laptop web server's IP address.

The fact that Aurigma Up relies on a license mechanism that is tied to a specific hostname makes it sound like it will only work if it is connected to the internet. For example, to request a free license from you I have to enter a hostname, but of course on a private network I have no hostname, just whatever IP address the router assigns my laptop by DHCP. So I have no idea what to enter.

Given that the license is free, I don't see why it should be so complicated or even impossible to use Aurigma Up for this application (i.e. using it on a private network for a university classroom). I would be very grateful if you could suggest a way to make this work.

Otherwise, Aurigma Up looks like a great tool, which I would love to be able to have the students in my class use.

Yours with thanks,

Prof. Christopher Lee
Dept. of Computer Science, UCLA
p.shirykalova  
#2 Posted : Tuesday, September 20, 2011 10:20:25 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)
Hello Chris,

Thank you for your question.
You can activate your domain typed license key with your IP address, which in this case will be used as domain name.
This license key should work, we have tested such method in our testing lab.

Please try it and let me know about your results.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#3 Posted : Tuesday, November 15, 2011 4:19:41 AM(UTC)
MMichael

Rank: Member

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

If i may i have an issue with using Aurigma Up on ipad. Website is created to work in Vpn network so the main panel is running directly on local address http://10.1.0.59/index.aspx.
I have setup the basic config so that Aurigma Up settings look like this :
upload url : http://10.1.0.59/ZwrotyAdd.aspx
redirect url: http://10.1.0.59/Zwroty.aspx
original website : http://10.1.0.59/Zwroty.aspx

When i press "Start Upload" button it show message
"Upload Failure : redirect is not supported with this website (HTTP code 3xx received). Please ...."

How to properly set this url ?
File Attachment(s):
ZwrotyAdd.aspx.txt (1kb) downloaded 17 time(s).
ZwrotyAdd.aspx.vb.txt (1kb) downloaded 16 time(s).
p.shirykalova  
#4 Posted : Tuesday, November 15, 2011 11:22:57 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,

The error you are getting means that your app is loosing cookies. I checked your code and didn't find any cookies in your request, so please add all necessary cookies and try upload again. You can use our code generator.

Please read this topic, this is about Image Uploader (our another product) but it demonstrates the main idea well.

Please fele free to contact us if you have any questions.

Edited by user Tuesday, November 15, 2011 11:24:22 PM(UTC)  | Reason: Not specified

Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#5 Posted : Wednesday, November 16, 2011 1:36:14 AM(UTC)
MMichael

Rank: Member

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

Hello Pauline,
what do you mean by "add all necessary cookies" ?
I have already check how to add cookies but what specific one do i need in my case ?

<a href="aurup:?uploadUrl=http://10.1.0.59/ZwrotyAdd.aspx&redirectUrl=http://10.1.0.59/Zwroty.aspx&redirectDelay=0&returnUrl=http://10.1.0.59/Zwroty.aspx&licenseKey=79FF1-00012-13490-00008-96FA2-F4E6D8&cookies=cookie1=value1;cokkie2=value2">Upload file</a>

Edited by user Wednesday, November 16, 2011 1:43:15 AM(UTC)  | Reason: Not specified

p.shirykalova  
#6 Posted : Wednesday, November 16, 2011 10:56:15 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,

You can check which cookies are needed in your browser's developer tools.
Please provide me with the link to your site (login/password if any), I will check that. You can submit new support ticket and post login information there.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#7 Posted : Wednesday, November 16, 2011 11:53:29 PM(UTC)
MMichael

Rank: Member

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

Unfortunately, I run this service on local network. Sorry for the question but the only way I could use safari developer tools is on the local machine - but on that confition Aurigma Up not fire up - as expected. What other solution could You suggest ?
I develop this app in visual .net using asp.net and publish this on IIS6. The final hardware connected is Ipad.
p.shirykalova  
#8 Posted : Thursday, November 17, 2011 12:40:05 AM(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,

Please open JavaScript console in Developer tools, open your page where you host your Aurigma Up and type this in console:
Code:
document.cookie

You will get all the cookies, please add them to your Aurigma Up request with the help of our code generator.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#9 Posted : Thursday, November 17, 2011 1:25:01 AM(UTC)
MMichael

Rank: Member

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

Thanks for replay, i did log on safari browser on the server 10.1.0.59 and run developer tools console.
This is what i get from console :
>> document.cookie
""
p.shirykalova  
#10 Posted : Thursday, November 17, 2011 9:21:33 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,

I've tested your code locally and it works for me. In this case could you please send me the complete sample of your site so I can recreate the environment most similar to yours.

Also please try to set the uploadUrl and redirectUrl constantly, i.e.:
Code:
<a href="aurup:?uploadUrl=http%3A%2F%2Fyourdomain.com%2Fyourpath%2Fupload.aspx&redirectUrl=http%3A%2F%2Fyourdomain.com%2Fyourpath%2Fupload.aspx&licenseKey=yourlicensekey">Wczytaj zalaczniki</a>
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#11 Posted : Friday, November 18, 2011 1:45:38 AM(UTC)
MMichael

Rank: Member

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

Hello,
I have no idea what's wrong with my code. I did also test static uploadUrl and redirectUrl as You write before. Also the same "Upload Failure" warning.
I include package with more source code (vb.net 2008 project).

Is there any additional configuration need for AurigmaUp conterning file permission for the folder.
Maybe there is something wrong with the network directory http://10.1.0.59/upload.

But i have to admit that when i was uploading using Samsung galaxy tab using <asp:FileUpload ID="fupZwrot" runat="server" /> everything seems to work fine.

Maybe there is a problem in function Page_Load() of package\ZwrotyAdd.aspx.vb file ?
File Attachment(s):
package.zip (11kb) downloaded 6 time(s).
p.shirykalova  
#12 Posted : Friday, November 18, 2011 3:09:19 AM(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,

Let's do the following: please download the sample which I've tested locally. Try to run it and if it works try to built it into your application. If it doesn't, please let me know.
File Attachment(s):
AurigmaUptest.zip (127kb) downloaded 14 time(s).
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#13 Posted : Monday, November 21, 2011 2:47:41 AM(UTC)
MMichael

Rank: Member

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

Hello Pauline,
after i run Your code is seems to work just fine. The issue is probably with the upload function Page_Load().
But there is another thing,
after i upload the file i'd like to display the name of if on the main page.

Code:

upload.aspx 
Request.Files("File0_" & i).SaveAs(path)
Session("fileUploaded") = Request.Form("SourceName_" & i).ToString


Also I add
Code:
<%Response.Write(Session("fileUploaded"))%>
into redirectUrl page.


I've added session info but it generate error.
How this task could be done ?
Michael
MMichael  
#14 Posted : Monday, November 21, 2011 4:39:17 AM(UTC)
MMichael

Rank: Member

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

What's more,
when i remove Protected Sub Page_Load() from upload.aspx (while setting AutoEventWireup="true")
to upload.asxp.vb as a Partial Class Upload
i get "Upload failure. some server-side error occured http code 5xx received)".
File Attachment(s):
working.zip (2kb) downloaded 6 time(s).
not_working.zip (2kb) downloaded 5 time(s).
p.shirykalova  
#15 Posted : Monday, November 21, 2011 7:12:24 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,

Quote:
after i upload the file i'd like to display the name of if on the main page

Unfortunately it is not possible. Aurigma Up doesn't have an access to fily system, so there is no information about the file available to displey after upload.

Quote:
when i remove Protected Sub Page_Load()

Could you please explain why did you remove this function? This is main upload function, it contains all the basic upload functionality. Without having this function your Aurigma Up will fail to find the upload script and will retun error - that's what is hapenning now. Please do not remove Page_Load().
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#16 Posted : Tuesday, November 22, 2011 3:18:03 AM(UTC)
MMichael

Rank: Member

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

Hello, as i wrote in last post, i remove the main function Page_Load() from upload class to upload
Code:
<script runat="Server">
, not delete anything.
please check my upload source code on your environment.
p.shirykalova  
#17 Posted : Wednesday, November 23, 2011 1:09:22 AM(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,

I've tested both scripts. Both do not work for me since I probably have different client's code that you. I'm getting Null Reference exception on this line:
Code:
path = path.Replace(filename(0), "zwroty_" & Session("hash").ToString)

If I comment this line or set some value to hash variable, the code works - both variants.

Please find my working samples attached.
File Attachment(s):
samples.zip (254kb) downloaded 4 time(s).
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#18 Posted : Friday, November 25, 2011 2:48:29 AM(UTC)
MMichael

Rank: Member

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

I check Your code and there is no difference in mine. but unfortunatelly for me it only works ipad2One file variant.
But what about parameter field including in url. What i want to achive is that to change the name of the uploaded file from default exp. Uploadedfile1.jpg into field1_field2.jpg.

1. example
when i try this code below file has no name at all (.jpg on server)
Code:
<a href="aurup:?uploadUrl=http://10.1.0.59/upload.aspx?field1=aaa&field2=bbb&returnUrl=http://10.1.0.59/ZwrotyAdd.aspx&redirectUrl=http://10.1.0.59/ZwrotyAdd.aspx&redirectDelay=0&licenseKey=79FF1-00012-13490-00008-96FA2-F4E6D8">wprowadz nowe zalaczniki</a>


and inside upload.aspx in Page_Load() function :
Code:
If (Request.QueryString("field1") IsNot Nothing And Request.QueryString("field2") IsNot Nothing) Then
fileSessionName = Request.QueryString("type").ToString & "_" & Request.QueryString("sid").ToString
End If
...
Dim filename() As String = Request.Form("SourceName_" & i).Split(".")
path = path.Replace(filename(0), fileSessionName)
Request.Files("File0_" & i).SaveAs(path)


2. example

the other approche is to send some additional data using field parameter while constucting "<a href="aurup" url.
Code:
<a href="aurup:?uploadUrl=http://10.1.0.59/upload.aspx&returnUrl=http://10.1.0.59/ZwrotyAdd.aspx&redirectUrl=http://10.1.0.59/ZwrotyAdd.aspx&redirectDelay=0&licenseKey=79FF1-00012-13490-00008-96FA2-F4E6D8&fields=field1=aaa;field2=bbb">wprowadz nowe zalaczniki</a>


how can i get data post by this parameter in the Page_Load() function ?

Michael

Edited by user Friday, November 25, 2011 2:50:52 AM(UTC)  | Reason: Not specified

p.shirykalova  
#19 Posted : Monday, November 28, 2011 2:57:04 AM(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,

I am sorry for this delay.
I just want you to know that we need a little more time for testing your issue.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
MMichael  
#20 Posted : Monday, November 28, 2011 5:29:51 AM(UTC)
MMichael

Rank: Member

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

Hello Pauline,
it's good to know that You testing this case.
But I'd be very glad if You could find any solution as soon as possible.
Best regards.
Users browsing this topic
2 Pages12>
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.