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

Notification

Icon
Error

Options
Go to last post Go to first unread
alex-oo  
#1 Posted : Thursday, May 27, 2010 2:05:48 AM(UTC)
alex-oo

Rank: Newbie

Groups: Member
Joined: 5/27/2010(UTC)
Posts: 3

Hi

we use image uploader 5 here, and i wanted to add some more filetypes. so i extended the "FileMask" parameter to

*.gif;*.jpg;*.jpeg;*.png;*.bmp;*.pdf;*.doc;*.docx;*.xls;*.zip;*.kmz

but anyway, the image uploader gui just displays gifs, jpgs and bmps. any other file format will not show up

did i miss something?

kind regards
Alex
Fedor  
#2 Posted : Thursday, May 27, 2010 4:08:27 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,556

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
Hello Alex,

Please post here or submit a case with the URL or source code of the page with Image Uploader. It will help us to figure out the reason of problem.
Best regards,
Fedor Skvortsov
alex-oo  
#3 Posted : Thursday, May 27, 2010 5:48:54 AM(UTC)
alex-oo

Rank: Newbie

Groups: Member
Joined: 5/27/2010(UTC)
Posts: 3

Hello Fedor

here is our code for the image uploader, hope its what you meant:

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Aurigma Image Uploader</title>
	<link href="style.css" type="text/css" rel="stylesheet" />
	<script src="iuembed.js" type="text/javascript"></script>
	<script src="Resources/en.js" type="text/javascript"></script>
	<script src="Resources/de.js" type="text/javascript"></script>
	<script src="Resources/fr.js" type="text/javascript"></script>
	<script src="Resources/it.js" type="text/javascript"></script>
	<script src="Resources/no.js" type="text/javascript"></script>
	<script src="Resources/ru.js" type="text/javascript"></script>
	<script src="Resources/sv.js" type="text/javascript"></script>
	<script src="Resources/zh.js" type="text/javascript"></script>
	<script src="Resources/zh-cn.js" type="text/javascript"></script>
	<script type="text/javascript">
//<![CDATA[
function SelectLanguage_change(){
	//Reload page when the language is changed. Selected language is passed through the URL.
	var SelectLanguage = document.getElementById("SelectLanguage");
	var language = SelectLanguage.options[SelectLanguage.selectedIndex].value;
	var url = window.location.href.substring(0, window.location.href.length - window.location.search.length);
	if (url.charAt(url.length - 1) != "?"){
		url += "?";
	}
	window.location = url + language;
}
//]]>
	</script>

</head>
<body>
	<p>
		Select language:
		<select id="SelectLanguage" onchange="SelectLanguage_change();">
			<option value="en">[en] - English</option>
			<option value="de" selected="selected">[de] - German</option>

			<option value="fr">[fr] - French</option>
			<option value="it">[it] - Italian</option>
			<option value="no">[no] - Norwegian</option>
			<option value="ru">[ru] - Russian</option>
			<option value="sv">[sv] - Swedish</option>
			<option value="zh">[zh] - Traditional Chinese</option>

			<option value="zh-cn">[zh-cn] - Simplified Chinese</option>
		</select>
	</p>

	<script type="text/javascript">
//<![CDATA[

var iu = new ImageUploaderWriter("ImageUploader1", 670, 550);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader5.cab";
iu.activeXControlVersion = "5,7,14,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "5.7.14.0";

iu.addParam("AllowMultipleRotate", "true");

iu.addParam("MaxFileCount", "20");
iu.addParam("MaxFileSize", "10485760");//10MB
iu.addParam("MaxTotalFileSize", "31457280");//30MB
iu.addParam("ShowDescriptions", "true");
iu.showNonemptyResponse = "off";

iu.addParam("TimeOut", "0");

iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

iu.addParam("LicenseKey", "xxxxxxxxxxxxxx");

iu.addParam("FileMask", "*.gif;*.jpg;*.jpeg;*.png;*.bmp;*.pdf;*.doc;*.docx;*.xls;*.zip;*.kmz");

// Configure URL files are uploaded to.
iu.addParam("Action", "xxxxxxxx");

// Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "xxxxxxx");

// Configure miscellaneous settings.
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("BackgroundColor", "#ccccff");
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("ShowUploadListButtons", "true");
iu.addParam("FolderPaneHeight", "220");

// Localization
// Get the language to apply localization for.
var lang = window.location.search;
if (lang.length > 0 && lang.charAt(0) == "?")
{
	lang = lang.substr(1);
}

switch (lang)
{
	case "en":
		en_resources.addParams(iu);
		break;

	case "fr":
		fr_resources.addParams(iu);
		break;

	case "it":
		it_resources.addParams(iu);
		break;

	case "no":
		no_resources.addParams(iu);
		break;

	case "ru":
		ru_resources.addParams(iu);
		break;

	case "sv":
		sv_resources.addParams(iu);
		break;

	case "zh-cn":
		zh_cn_resources.addParams(iu);
		break;

	case "zh":
		zh_resources.addParams(iu);
		break;

	default:
		lang = "de";
		de_resources.addParams(iu);
		break;
}

var SelectLanguage = document.getElementById("SelectLanguage");
for (var i = 0; i < SelectLanguage.options.length; i++)
{
	if (SelectLanguage.options[i].value == lang)
	{
		SelectLanguage.selectedIndex = i;
		break;
	}
}

// Tell Image Uploader writer object to generate all necessary HTML code to embed
// Image Uploader to the page.
iu.writeHtml();
//]]>
	</script>

</body>
</html>

Edited by user Thursday, May 27, 2010 5:57:33 AM(UTC)  | Reason: Not specified

Tamila  
#4 Posted : Friday, May 28, 2010 2:27:40 AM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hi,

Your code is correct. I just tried to reproduce the problem locally using your code and everything worked well. However I used Image Uploader 5.8. I recommend you to update to the latest version and try again. You can download Image Uploader 5.8.1 here.

If the problem still appears please let us know.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
alex-oo  
#5 Posted : Tuesday, June 15, 2010 9:11:46 PM(UTC)
alex-oo

Rank: Newbie

Groups: Member
Joined: 5/27/2010(UTC)
Posts: 3

i'm sorry, my fault... the changes weren't on the live system but only on the beta system which refers for the imageuploader to the live system

everything fine now :)
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.