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

Notification

Icon
Error

Options
Go to last post Go to first unread
jacob  
#1 Posted : Monday, June 27, 2011 12:11:09 AM(UTC)
jacob

Rank: Member

Groups: Member
Joined: 12/13/2010(UTC)
Posts: 16

Thanks: 1 times
Hello,

I'm in the middle of optimizing the uploader for all my users and I've gotten stuck with a Mac problem.

When selecting files on a Mac with the Java uploader the left side panel is hidden/removed in the selection window. This panel is the link to Media->Pictures which is a direct link to the iPhoto library.

Is there a way to show this panel?

Currently all my Mac users are redirected straight to the Flash uploader (because of this issue) but with when uploading with the Flash on a Mac I'm still experiencing memory issues (even with the latest version).

Dmitry.Obukhov  
#2 Posted : Monday, June 27, 2011 1:39:44 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Quote:
Is there a way to show this panel?

You should set width property of tree pane to some value:

Code:
treePane: {
        width: 250,
    },
//...other parameters...

Quote:
Currently all my Mac users are redirected straight to the Flash uploader (because of this issue) but with when uploading with the Flash on a Mac I'm still experiencing memory issues (even with the latest version).

Could you please describe it in details?

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

jacob  
#3 Posted : Monday, June 27, 2011 4:29:30 AM(UTC)
jacob

Rank: Member

Groups: Member
Joined: 12/13/2010(UTC)
Posts: 16

Thanks: 1 times
Dmitry.Obukhov wrote:
Hello Jacob,

Quote:
Is there a way to show this panel?

You should set width property of tree pane to some value:

Code:
treePane: {
        width: 250,
    },
//...other parameters...

Thank you, I will try this asap.

Dmitry.Obukhov wrote:
Quote:
Currently all my Mac users are redirected straight to the Flash uploader (because of this issue) but with when uploading with the Flash on a Mac I'm still experiencing memory issues (even with the latest version).

Could you please describe it in details?

When I try to load images in the Flash uploader my machine's memory get flooded and the loading process stops. Noting craches, it just stops loading.

The same images uploads without any problems when I tried SWFupload. I'm not cropping the images or doing anything to them in your software.

I've tested it in both Firefox and Safari and all get this exact same error. It floods after about 10-15 pictures (depending on how high quality they are).

This is my settings for the Flash upload.

Code:
var flashupload = $au.imageUploaderFlash({
id: 'imageupload',
width: '780px',
height: '400px',
licenseKey: '***;***',
enableDescriptionEditor: false,
enableRotation: false,
flashControl: {
	codeBase : 'flash/imageuploaderflash7.2.swf',
	themeUrl: 'flash/theme/DefaultTheme2.swf'
},
uploadSettings: {
	actionUrl: "http://upload.domain.com"
},
topPane: {
	showViewComboBox: false
},
uploadPane: {
	thumbnailPreviewSize: 100,
	viewMode: 'Thumbnails'
},
restrictions: {
	maxFileCount: 500,
	maxFileSize: 20971520,
	minFileSize: 51200,
	minImageHeight: 200,
	minImageWidth: 200,
	fileMask: [['Bilder (*.jpg;*.jpeg)', '*.jpg;*.jpeg']]
},
converters: [{
	mode: "*.*=SourceFile"
}]
});
Dmitry.Obukhov  
#4 Posted : Tuesday, June 28, 2011 9:09:14 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

I need to get some details related to your issues.

1. As for

Quote:
When selecting files on a Mac with the Java uploader the left side panel is hidden/removed in the selection window.

As far as I understand, you meant tree pane of Image Uploader applet by “the left side panel”. If so, please let me know whether setting tree pane width to “250” resolved this problem. If it is not, please send me a screenshot, which clarifies what exact problem you face.

2. As for problem with Flash Uploader and memory.

You set minImageHeight and minImageWidth properties. To read width/height of images, Flash loads all images to memory. Unfortunately, it is the feature of Adobe Flash. Files are unloaded from memory after complete uploading only. Thus, you experience this problem.

If you send a large amount of images, I do not recommend you to set these restrictions on images’ width/height for Flash Uploader.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Dmitry  
#5 Posted : Tuesday, June 28, 2011 11:14:55 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Today I wrote reply to similar question to another customer. I guess it’s worth to post it here also.

Adobe Flash has strange design of memory sub-system. If you open a reference to a file using file picker and want to load some information from this file (image width/height to validate restrictions in our example), you have to read the whole file to memory and keep it there. Flash doesn’t allow to unload file binary from memory, all you can do is to destroy reference to it (memory is cleared in this case). After that you cannot get access to this file. If you need this file again somewhere in your program (upload stage in our case), you have to open file picker again and ask your user to choose the same file. That’s Adobe Flash.

Following this logic, if you enable restrictions to image width/height, photos are loaded to memory right after you select them in file picker. A photo remains loaded to memory until the moment when it’s uploaded to a server. If you don’t use image-related restrictions, the uploader works another way. During upload stage the uploader takes files one by one, loads a file to memory, does whatever it should do with the file, uploads it and then destroys reference to it (clears memory), then turns to the next file, etc. This way, you don’t stress memory usage in Web browser process.

Edited by user Tuesday, June 28, 2011 11:16:36 PM(UTC)  | Reason: Not specified

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

jacob  
#6 Posted : Wednesday, June 29, 2011 12:56:48 AM(UTC)
jacob

Rank: Member

Groups: Member
Joined: 12/13/2010(UTC)
Posts: 16

Thanks: 1 times
Dmitry.Obukhov wrote:
Hello Jacob,

I need to get some details related to your issues.

1. As for

Quote:
When selecting files on a Mac with the Java uploader the left side panel is hidden/removed in the selection window.

As far as I understand, you meant tree pane of Image Uploader applet by “the left side panel”. If so, please let me know whether setting tree pane width to “250” resolved this problem. If it is not, please send me a screenshot, which clarifies what exact problem you face.

Well, I now know what you meant by "treePane". This is however not optimal in our case, we would like to use "OnePane" but if it's not possible to have it work with Mac we just need to switch.

I've attached a image of the window i was referring to - as you can see; no left side menu is displaying which makes it impossible to get into the "Media-tab". How come you're not using the same file selector in Java as you do in Flash?

Dmitry.Obukhov wrote:
2. As for problem with Flash Uploader and memory.

You set minImageHeight and minImageWidth properties. To read width/height of images, Flash loads all images to memory. Unfortunately, it is the feature of Adobe Flash. Files are unloaded from memory after complete uploading only. Thus, you experience this problem.

If you send a large amount of images, I do not recommend you to set these restrictions on images’ width/height for Flash Uploader.

Dmitry wrote:
Today I wrote reply to similar question to another customer. I guess it’s worth to post it here also.

Adobe Flash has strange design of memory sub-system. If you open a reference to a file using file picker and want to load some information from this file (image width/height to validate restrictions in our example), you have to read the whole file to memory and keep it there. Flash doesn’t allow to unload file binary from memory, all you can do is to destroy reference to it (memory is cleared in this case). After that you cannot get access to this file. If you need this file again somewhere in your program (upload stage in our case), you have to open file picker again and ask your user to choose the same file. That’s Adobe Flash.

Following this logic, if you enable restrictions to image width/height, photos are loaded to memory right after you select them in file picker. A photo remains loaded to memory until the moment when it’s uploaded to a server. If you don’t use image-related restrictions, the uploader works another way. During upload stage the uploader takes files one by one, loads a file to memory, does whatever it should do with the file, uploads it and then destroys reference to it (clears memory), then turns to the next file, etc. This way, you don’t stress memory usage in Web browser process.

I read through your posts again and had to change my answear.

I'll remove the restrictions to solve the issue but one thing I can't understand is why you dont do the control one file by one when they are uploaded - that way the memory will be cleard if the file gets uploaded or you can remove the reference and send a warning if the restrictions doesn't match.

Edited by user Wednesday, June 29, 2011 1:21:44 AM(UTC)  | Reason: Not specified

jacob attached the following image(s):
aurigma-print-screen.png
Dmitry  
#7 Posted : Wednesday, June 29, 2011 11:34:07 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

We don’t draw file pickers neither in Java nor in Flash. They are implemented in the environment classes (internal code in Flash/Java), we just use them in our code. I’m aware that file open dialog in Java looks completely different than standard dialog in Mac OSX (e.g. doesn’t support iPhoto). We have this problem in the bug tracker, and we'll dig into the question whether it’s possible to switch to native dialog in “Snow Leopard”. “Leopard” didn’t allow that for sure.

Quote:
I can't understand is why you dont do the control one file by one when they are uploaded - that way the memory will be cleard if the file gets uploaded or you can remove the reference and send a warning if the restrictions doesn't match.

The idea of restrictions in Image Uploader Flash is to validate files on the “adding to upload list” stage. If you add 100 files to upload list and the latest one doesn’t meet the requirements, you will know about it only after 99 files are uploaded. However, maybe it’s not bad idea taking into account Flash limitations.

Edited by user Wednesday, June 29, 2011 11:35:52 PM(UTC)  | Reason: Not specified

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
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.