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

Notification

Icon
Error

Options
Go to last post Go to first unread
pbussey  
#1 Posted : Sunday, June 20, 2010 9:11:45 PM(UTC)
pbussey

Rank: Newbie

Groups: Member
Joined: 5/17/2010(UTC)
Posts: 5

Hi all,

I am having a 3d party developer get stuck on working with the Java version of the ImageUploader in using PHP.

I've tried to have ImageUploader upload files to a subfolder created within the Gallery folder according to a user account directory.

On press of the upload button, the message "Image Uploader Encountered Some Problem" message appears. Before these alterations were done, ImageUploader worked fine when saving files to just the gallery folder.

I'm not a PHP developer myself - so forgive my lack of knowledge. The developer is from India, and their english skills are not that hot - so I need to address this problem myself to the forums.

I've been told by the developer that the flow of events (in terms of the PHP files) is this:-

ImageUpload.php -> ImageUploader.php - >Upload.php -> GalleryFiles.php

ImageUpload.php - Checked if the currently logged on user needed to check a disclaimer. Once they had done this, a subfolder and thumbnails subfolder was created based on the user account name (and unique ID).

ImageUploader.php - Display the uploader applet.

Upload.php - Handles the upload process I believe.

GalleryFiles.php - Not entirely sure what this does! (displays the thumbnails post to upload?)

I'm guessing the problem is in Upload.php. I think I've read on another post that the error message "Image Uploader Encountered Some Problem" is associated with a cookie or security problem. But these are guesses.

Thanks for any help in advance.

Paul Bussey

File Attachment(s):
Problem Pages.zip (4kb) downloaded 9 time(s).
Tamila  
#2 Posted : Monday, June 21, 2010 4:54:21 PM(UTC)
Tamila

Rank: Advanced Member

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

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

Thanks for detailed information. I think you are right. You experience the problem with Image Uploader because of lost session variables. As I can see you use them in upload.php script.

Also I looked through your imageUploader.php script and corrected it. To embed Image Uploader you should use javascript embedded library (iuembed.js) or PHP Library, not simultaneously both. I recommend you to use PHP Library because it include mechanisms to preserve cookies and session variables as well. Please see corrected imageUploader.php script in attachment.

I hope it helps you.

File Attachment(s):
imageUploader.zip (1kb) downloaded 11 time(s).
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

pbussey  
#3 Posted : Monday, June 21, 2010 10:36:36 PM(UTC)
pbussey

Rank: Newbie

Groups: Member
Joined: 5/17/2010(UTC)
Posts: 5

Tamila,

Many thanks for your reply. I'm directing my developer to see your reply and hopefully he will make sense of what to do next.

Guest  
#4 Posted : Wednesday, June 23, 2010 12:33:39 AM(UTC)
Guest

Rank: Guest

Groups: Guest
Joined: 12/9/2007(UTC)
Posts: 5

Hey Tamila,

Thanx a lot for replying...

I am the developer working with Paul. I have worked with your suggestion and changed ImageUploader.php.

But its still not working. The reason is not at all clear to me.

When ever after login i am running upload.php manually from the browser without clicking the upload button of the image uploader and printing the session variables, it is showing me the correct path. But while uploading with the ImageUploader it is throwing some unexpected exception.

I cannt understand the problem.

Thank You very very much once again.

Plz help...

Rupal Chatterjee

(Developer)

Tamila  
#5 Posted : Wednesday, June 23, 2010 12:47:30 PM(UTC)
Tamila

Rank: Advanced Member

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

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

I recommend you to get more information about the error.

First of all you need to use ShowDebugWindow property:

Code:
$iu->setShowDebugWindow(true);

Also make sure that you use the following properties of php.ini:

display_errors On

log_errors On

By the way if you have custom error pages, please disable them for a while.

Now try to reproduce the error with Image Uploader and you will see detailed information about the error. Let me know about your results.

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

Guest  
#6 Posted : Wednesday, June 23, 2010 9:23:50 PM(UTC)
Guest

Rank: Guest

Groups: Guest
Joined: 12/9/2007(UTC)
Posts: 5

Hey Tamila,

Thank You for the debugging code...

It helped me to get the actual resource of the error. I got that.

It was just the cookie problem in upload.php.

Thax a lot for ur assistance.

Have a nice day...

Rupal Chatterjee

Tamila  
#7 Posted : Thursday, June 24, 2010 11:36:27 AM(UTC)
Tamila

Rank: Advanced Member

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

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

I am glad that your problem is solved.

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

pbussey  
#8 Posted : Thursday, June 24, 2010 6:22:19 PM(UTC)
pbussey

Rank: Newbie

Groups: Member
Joined: 5/17/2010(UTC)
Posts: 5

Hi Tamila and Rupal,

Good work Rupal.

Many thanks for sharing your expertise Tamila and for helping Rupal ! Problem all resolved.

Paul Bussey

www.3dartdirect.com

Guest  
#9 Posted : Friday, June 25, 2010 11:22:57 PM(UTC)
Guest

Rank: Guest

Groups: Guest
Joined: 12/9/2007(UTC)
Posts: 5

Hey Tamila,

Sorry to disturb u again...

Can u plz let me know that, is there any way to stop the resize of the folder tree pane inside the applet???

Plz help....

File Attachment(s):
imageUploader.rar (1kb) downloaded 8 time(s).
Dmitry.Obukhov  
#10 Posted : Sunday, June 27, 2010 9:32:12 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 Rupal,

Thanks for taking interest in our software.

You can specify fixed width of tree pane for Image Uploader ActiveX version only.

There is the

ImageUploader.AllowTreePaneWidthChange Property

allowing to disable changing tree pane

width. Note that the given property does not work for Java version.

Let me know if you have some additional questions.

Edited by user Monday, July 12, 2010 12:08:05 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Guest  
#11 Posted : Monday, July 5, 2010 2:40:22 PM(UTC)
Guest

Rank: Guest

Groups: Guest
Joined: 12/9/2007(UTC)
Posts: 5

Hey Tamila & Obukhov,

I have a small problem regarding the image uploader... When I am uploading an image of 0 to 10 MB, it is working fine.

But when i am uploading an image of 14MB it is throwing an error msg.

I am sending the an screen shot of the error msg...

Please help me out...

Thanks,

Rupal

File Attachment(s):
imageuploader.zip (2kb) downloaded 5 time(s).
Guest attached the following image(s):
~~paul 1.jpg
Dmitry.Obukhov  
#12 Posted : Monday, July 5, 2010 7:52:50 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)
Rupal,

This problem has been already occurred. The most typical reason of this problem is server-side limitation for maximum POST request length that does not allow processing large requests.

If you use PHP, you should edit your PHP configuration file for increasing the limit of the maximum upload size. Please, read the detailed information how to perform it.

In the case if you use ASP.NET platform, you will need to configure the settings of your server depending on its version.

If you have any questions or problems, please let me know.

Edited by user Monday, July 12, 2010 12:08:25 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Guest  
#13 Posted : Monday, July 5, 2010 8:06:43 PM(UTC)
Guest

Rank: Guest

Groups: Guest
Joined: 12/9/2007(UTC)
Posts: 5

Hey Obukhov,

Thanx a lot for ur assisance. I am using php,

Should I add a couple of lines to imageUploader.php, I think it will change the property of php.ini???

ini_set("post_max_size", "201M");

ini_set("upload_max_filesize", "200M");

Please reply...

With Regards

Rupal Chatterjee

Dmitry.Obukhov  
#14 Posted : Tuesday, July 6, 2010 6:34:14 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)
Rupal,

According to the documentation to increase the limit of the maximum upload size, you should edit your PHP.ini file only:

  1. Open your PHP.ini ;

  2. Set the required limits:

    Code:
    
    post_max_size = 200MB
    upload_max_filesize = 200MB

  3. Optionally, set the following parameters:

    - memory_limit

    - upload_tmp_dir

    - max_execution_time

If you use the Apache web server, you should also edit the php.conf file.

  1. Open the php.conf file. You can find it:

  2. Change the LimitRequestBody parameter according to the post_max_size value, e.g.:

    Code:
    LimitRequestBody 104857600

If you use another server, refer to its documentation for instructions on the configuration.

Do not forget to restart your server after modifying its configuration.

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

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.