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

Notification

Icon
Error

Options
Go to last post Go to first unread
manish_nakar  
#1 Posted : Thursday, January 10, 2008 9:29:05 PM(UTC)
manish_nakar

Rank: Newbie

Groups: Member
Joined: 1/10/2008(UTC)
Posts: 1

Hi,

We have purchased a single domain licence of image uploader.

We are facing lot of issues in uploading.

The images are not getting uploaded and the post data is not received .

The code is as follows.

We are sending description field using the following

imageUploader1.setUploadFileDescription(i, description);

where description is "Main Photo" , "ALbum 1" or "Album 2".

and accordingly in the action page we are using the details

SCRIPT ON tHE PAGE WHERE IMAGEUPLOADER IS DISPLAYED

----------------------------------------

Code:
iu.addEventListener("AfterUpload", "ImageUploader_AfterUpload");

		//...other params...

iu.addParam("UploadSourceFile", "false");


iu.addParam("Action","/addphotograph2.php");

//Add event handlers.
iu.addEventListener("SelectionChange", "ImageUploader_SelectionChange");
iu.addEventListener("BeforeUpload", "beforeUploadHandler");
iu.addEventListener("UploadFileCountChange", "ImageUploaderID_UploadFileCountChange");

iu.fullPageLoadListenerName = "fullPageLoad";


function ImageUploader_AfterUpload(Html)
{
	window.document.write(Html);
}


function fullPageLoad(){
//showng some options
}

function ImageUploaderID_UploadFileCountChange()
{
// setting description field	

}

function ImageUploader_SelectionChange() {	
	// setting description field	
}
/**
 * This function is called just before uploading
	we are sending a field containing the option of photo display through this function
*/
function beforeUploadHandler() 
{

	getImageUploader("ImageUploader1").AddField("display_option",disp);
	getImageUploader("ImageUploader1").AddField("photostatus",photostatus);
	getImageUploader("ImageUploader1").AddField("memberlogin",memberlogin);
	getImageUploader("ImageUploader1").AddField("go_continue",go_continue);
	getImageUploader("ImageUploader1").AddField("album1_status",album1_status);
	getImageUploader("ImageUploader1").AddField("album2_status",album2_status);
	getImageUploader("ImageUploader1").AddField("photo_password",photo_password);
	getImageUploader("ImageUploader1").AddField("change_password",change_password);
	getImageUploader("ImageUploader1").AddField("photo_display_option",photo_display_option);
	getImageUploader("ImageUploader1").AddField("filename",filename);




	
}//EO function beforeUploadHandler() 

ACTION PAGE

-----------------------------------------------------------------------------------------------

Code:
if($Description_1 == "Main Photo")
{
	$main_image = $_FILES["Thumbnail1_1"]["tmp_name"];
	$main_image_name = $FileName_1;
}
elseif($Description_1 == "Album 1")
{
	$album1_image = $_FILES["Thumbnail1_1"]["tmp_name"];
	$album1_image_name = $FileName_1;
}
elseif($Description_1 == "Album 2")
{
	$album2_image = $_FILES["Thumbnail1_1"]["tmp_name"];
	$album2_image_name = $FileName_1;
}

after this we are copying the files into the folders

We are not getting the images.

i.e not getting $Description_1 values or other posted fields

JAVA CONSOLE O/P

------------------------------------------------------------------

Code:
Aurigma ImageUploader version: 2.5.50.0
Current document URL: /imageuploader/image-upload.php
Jan 11, 2008 6:56:50 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Reading cookies
Cookies: abclogin=priya_kaushik_1981; i2c=IN%7CIndia; ads=%7Cnum_not_verified%7C; abc=1588BD74E54B02BB9C359D3476F2393C1200057698%7Cpriya_kaushik_1981%7Cps%3DY%2Cpa%3DY%7C; zedo=Girl%2C26%2CIndia%2CVery+Fair%2CNot+working%2CBachelors+-+Advertising%2F+Marketing%2CAka%2CAnantapur; ad_profile_income_grp=OtherInc; memberblkyn=no; psc=%7CBF539%7Cpager%5Eg_id%7E1%5Ep_v_c%7E4%5Ep_d_c%7E0%5Ep_id%7E%7CCFE99%7C; offer=offer; __utma=64964461.1857772790.1197971167.1200053321.1200057910.23; __utmz=64964461.1197971167.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utmb=64964461; __utmc=64964461
Reading referer
Referer: /imageuploader/image-upload.php
Reading additional form content
Uploading to /imageuploader/adv-addphotograph2.php?
Setting HTTP params: Host=
Starting upload
Status =[200]
Upload complete. Result page:

Kindly help

Regards

mnsh

Edited by user Friday, January 11, 2008 8:15:39 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Friday, January 11, 2008 12:28:10 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

You could use ExtractFiles helper script to save all the files and post request dump to the server to check what really comes from Image Uploader. ExtractFiles helper script could be found here.

Sincerely yours,

Alex Makhov

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.