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

Notification

Icon
Error

Options
Go to last post Go to first unread
vimala  
#1 Posted : Wednesday, September 28, 2011 4:32:07 AM(UTC)
vimala

Rank: Member

Groups: Member
Joined: 11/16/2010(UTC)
Posts: 11

Hi,

I am using the image uploader 7.0 in php. But I am getting the js error message as Access denied in 'aurigma.uploader.min.js' and $au is undefined. When will such error occurs. I also attached the screenshot of the error. Please let me know when it is happen?

Regards,
Vimala
vimala attached the following image(s):
uploader.JPG
Dmitry.Obukhov  
#2 Posted : Wednesday, September 28, 2011 8:04:41 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Vimala,

We experienced this problem in Image Uploader v7.0.11. According to our records, you use this version. Please upgrade it to the latest one (v7.0.37) downloading it from our website. Then please let me know about your results.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
salman611  
#3 Posted : Friday, August 24, 2012 10:39:06 PM(UTC)
salman611

Rank: Newbie

Groups: Member
Joined: 8/24/2012(UTC)
Posts: 3

Hi Dmitry. We are using Aurigma Upload Suite 8.0.15 and are trying to implement this in xBasic. We tried to put the JavaScript code into place and calling it on click of a button. But we get the same error as mentioned in this post. It says "$au is undefined". Could you please suggest why we might be getting this error? We have included all the JS and CSS files required in the page.

Thanks,
Salman.
Dmitry.Obukhov  
#4 Posted : Sunday, August 26, 2012 11:54:53 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Salman,

Please post the complete code.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
salman611  
#5 Posted : Thursday, September 6, 2012 11:43:06 PM(UTC)
salman611

Rank: Newbie

Groups: Member
Joined: 8/24/2012(UTC)
Posts: 3

Dmitry.Obukhov wrote:
Hello Salman,

Please post the complete code.


Hi Dmitry. Please find my code below.

In the <head> tag:
Code:

<head>
    <meta charset="utf-8">
    <title>Aurigma Upload Suite 8 Demo Applications&nbsp;&mdash;&nbsp;Basic demo
    </title>
    <link href="style.css" rel="stylesheet" type="text/css" />

	<link rel="stylesheet" type="text/css" href="Scripts/css/aurigma.htmluploader.control.css" />
	<script src="Scripts/aurigma.htmluploader.control.js" type="text/javascript"></script>
	<script src="Scripts/aurigma.imageuploaderflash.min.js" type="text/javascript"></script>

</head>


The Javascript inside the <body>:
Code:

<div class="code">
	<script type="text/javascript">
        //<![CDATA[
		function test()
		{
            var uploader = $au.imageUploaderFlash({
			    id: 'Uploader1',
			    licenseKey: '77FF4-0046C-89592-C8E2C-8EF67-2600BE',
			    width: '100%',
			    height: '500px',
			    converters: [
					{ mode: '*.*=SourceFile' }
			    ], 
			    uploadSettings: {
					actionUrl: 'upload2.a5w',
					redirectUrl: 'Default.a5w'
			    }, 
			    flashControl: {
					codeBase: 'Scripts/aurigma.imageuploaderflash.swf',
					bgColor: '#f5f5f5'
			    }, 
			    restrictions: {
					fileMask: [['Images (*.jpg; *.jpeg; *.png; *.gif; *.bmp)', '*.jpg;*.jpeg;*.png;*.gif;*.bmp'], ['Documents (*.txt;*.rtf;*.pdf;*.doc;*.docx;*.xls;*.xlsx)', '*.txt;*.rtf;*.pdf;*.doc;*.docx;*.xls;*.xlsx']]
			    }
			});
	
			uploader.writeHtml();
		}
        //]]>
    </script>
	<input type="button" value="Xbasic upload" name="Upload" onclick="javascript: test();"></input>
</div>


In the Upload file:
Code:

<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 11 Build 2211-3815">
<!-- must use in order to make XP Themes render -->
<meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 

<title></title>
<%a5

function saveFiles as v (e as p)

dim count as n

count = e.filecount
dim i as n
dim arr as p

arr = e.filearray
dim cn as sql::connection
dim cs as c
cs = cn.open("{A5API=MySQL,Server='localhost',Port='3306',UserName='root',Password='XXXXXX',Database='XXXXXX'}")
'cs = e.tmpl.cs.connectionstring
cn.open(cs)
dim sql as c

sql = "insert into patient (Examid, Filmid, Image, Pid) values ('1', :customerId, :filename, '1')"

dim args as sql::arguments

args.add("customerId",e.primaryKeyArray[1])

for i = 1 to count
dim fn as c
dim data as c

data = e.fileArray[i].data

fn = "<file path>" + chr(92) + e.fileArray[i].fileName

?"value in fn: " + fn 
save_to_file(fn, "D:\tt1.txt")

%>
<br>
<%a5

file.from_string(fn,data) 'From_blob(fn,data)


dim fntoStore as c
fntoStore = e.fileArray[i].fileName

args.add("filename",fntoStore)


dim flag as l
flag = cn.Execute(sql,args)

if flag = .f. then

	e.javascript = "alert('Fatal error');"
	cn.close()
	exit function

end if



next i
cn.close()

e.javascript = "window.parent.{grid.object}.refreshLinkedContent();"

end function 

%>
</head>
<body>



</body></html>

<%a5
'Start of Saved Debug Variables
''Examples:
''request.variables.button_clicked = "Search"
''session.firstname = "Fred"

'End of Saved Debug Variables
%>
Dmitry.Obukhov  
#6 Posted : Friday, September 7, 2012 1:38:00 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

$au is undefined means that aurigma.imageuploaderflash.min.js file could not be found and loaded. Please be sure that you specify correct url to this file. If you are not sure, please provide me with your complete sample. I will check it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
salman611  
#7 Posted : Friday, September 7, 2012 2:54:29 AM(UTC)
salman611

Rank: Newbie

Groups: Member
Joined: 8/24/2012(UTC)
Posts: 3

Dmitry.Obukhov wrote:
Hello,

Please be sure that you specify correct url to this file. If you are not sure, please provide me with your complete sample. I will check it.


Hi Dmitry,

We were able to get this problem fixed. There was a copy of the js file in the root folder as well and hence it was unable to find the right js file path. Once we deleted the copy, the JS error disappeared.

Now we are able to click on a button and the flash page appears, and we are able to select multiple files and submit. But when we check the path given for upload in 'upload.a5w' file, there is nothing. The upload is not happening. (We are trying to upload to a local system folder itself to test)

I have attached all the files to this message. Please review and help. Your help is much appreciated.
File Attachment(s):
Project.rar (688kb) downloaded 1 time(s).
Dmitry.Obukhov  
#8 Posted : Sunday, September 9, 2012 8:52:34 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Mohammed,

Unfortunately, we do not have specialists in our company who are savvy in AlphaFive. Please ask your IT staff o that they test and debug the server-side code carefully.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Similar Topics
Image Uploader 7.0.15 is slow when compared to 6.0 (Discussions – ActiveX/Java Uploader)
by Stryker 6/23/2011 6:14:10 AM(UTC)
Problem with Image Uploader 7.0.28 in Mac Firefox4.0.1 (Discussions – ActiveX/Java Uploader)
by isao 6/6/2011 5:58:49 PM(UTC)
Aurigma Image Uploader 7.0 - Getting information (Discussions – ActiveX/Java Uploader)
by vimala 1/28/2011 11:25:46 PM(UTC)
Image Uploader 7.0.11 problem (Discussions – ActiveX/Java Uploader)
by Timh 11/18/2010 8:19:39 PM(UTC)
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.