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

Notification

Icon
Error

Options
Go to last post Go to first unread
Jmperez  
#1 Posted : Thursday, February 24, 2005 4:06:00 PM(UTC)
Jmperez

Rank: Member

Groups: Member
Joined: 2/24/2005(UTC)
Posts: 2

Hi ,

I want to use ImageUploader to upload .mp3 on my website.

I setup the uploader in this way:

Code:
<param name="Layout" value="TwoPanes">
<param name="SignatureFilter" value="All">
<param name="FileMask" value="*.jpg">
<param name="ShowUploadCompleteMessage" value="True">
<param name="ShowDebugWindow" value="True">
<param name="AdditionalFormName" value="myForm">
<param name="UploadMode" value="Separate">
<param name="Action" value="add_mp3file.php">
<param name="FolderView" value="Details">
<param name="MaxFileCount" value="1">
<param name="MaxFileSize" value="0">



Basically, the $_FILES variable in PHP is not instatiated when the file is mp3 . the $_FILES var is succesfully instatiated when the file is jpeg or image in general .

Any thought im why is this happening ?

I am using Image Uploader 3.0 and PHP4 on the backend.


Thanks !!
Jose M Perez

add_mp3file.php looks like this:
Code:
<?
	$imageName = "SourceFile_1";

	if (is_uploaded_file($_FILES[$imageName]['tmp_name']) ) echo "File Uploaded!!";
	else echo "There is a problem here";

	$size = $_FILES[$imageName]['size'];
	$type = $_FILES[$imageName]['type'];
	$fname = $_FILES[$imageName]['name'];
	$comment01 = $HTTP_POST_VARS ['Description_1'];

                //Do something with the file

	$tmp = $_FILES[$imageName]['tmp_name'];
	if (file_exists($tmp))
		echo " file exists ";
	else 
		echo " file doesnt exist ";

	echo $tmp;
	echo " id=$id, size=$size, type=$type, fname=$fname";

?>




========================================================
02/14/2008, Fedor
This topic is out of date.

You should use iuembed.js syntax now. Also please note that we removed SignatureFilter property at all, renamed Layout one to PaneLayout, and replaced UploadMode property to FilesPerOnePackageCount.


Code:
iu.addParam("FileMask", "*.jpg");

iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("FileMask", "*.jpg");
iu.addParam("ShowUploadCompleteMessage", "True");
iu.addParam("ShowDebugWindow", "True");
iu.addParam("AdditionalFormName", "myForm");
iu.addParam("FilesPerOnePackageCount", "1");
iu.addParam("Action", "add_mp3file.php");
iu.addParam("FolderView", "Details");
iu.addParam("MaxFileCount", "1");
iu.addParam("MaxFileSize", "0");


========================================================

Edited by user Wednesday, October 29, 2008 2:12:12 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Thursday, February 24, 2005 11:59:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
According to this param:

Code:
<param name="FileMask" value="*.jpg">


you hide all files with extensions which are differs from the .jpg. How you are uploading .mp3 files?

========================================================
02/14/2008, Fedor
This topic is out of date.

You should use iuembed.js syntax now.


Code:
iu.addParam("FileMask", "*.jpg");

========================================================

Edited by user Tuesday, October 28, 2008 11:24:09 PM(UTC)  | Reason: Not specified

Andrew  
#3 Posted : Friday, February 25, 2005 12:02:00 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
If it is a typo and you meant there "*.mp3", I have a suggestion that the problem is in some specific settings (e.g. maybe some filter which blocks uploaded files with certain content type is enabled).
Jmperez  
#4 Posted : Friday, February 25, 2005 12:05:00 AM(UTC)
Jmperez

Rank: Member

Groups: Member
Joined: 2/24/2005(UTC)
Posts: 2

I am sorry ,

yes it is a typo .. it is supposed to say *.mp3

(In my last testing I changed to jpeg just to be sure that it was not a problem in the php script, I forgot to change ot when I post this message).

Please, what are you suggestion ?

Thanks !!!!
J
Fedor  
#5 Posted : Wednesday, March 2, 2005 12:30:00 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Can you upload mp3 files using <input type=file>?

If yes, then problem is on server side and not connected with Image Uploader.

Edited by user Thursday, February 14, 2008 5:36:07 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
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.