1
rickh
Problem with mydownloads upload hack
  • 2004/9/3 23:45

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


Hello,

I've downloaded and uploaded the upload hack for the mydownloads module, but it wont work :( I've checked the "fileup.ini.php" but everything seems to be OK. The problem is that everything seems to be good (posting the new download etc. no error messages), but the file wont be uploaded. It doesnt appear in the uploads directory (chmodded to 777).

I'm using the latest release of Xoops. Is this maybe not compatible with that hack? (dated july 2004).

What am i doing wrong?

2
Catzwolf
Re: Problem with mydownloads upload hack
  • 2004/9/4 4:55

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Use WF-Downloads for this instead, you will find it at our website.

Download it from here

3
rickh
Re: Problem with mydownloads upload hack
  • 2004/9/4 23:04

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


thanks for the link, but i think that module is way too advanced for my purposes... i'm making a site for complete noobs and they never understand it i think....

I just need a very simple sollution to upload files in Xoops. I've also tried the hack for the news module (news_fileup.zip), but that uses the same scripts like the mydownloads_fileup, so i get the same problems 'I've tried a lot of things, but i dont get it to save the file in the uploads directory. I'm getting totally desperate Files are getting uploaded (when i check the bandwoth meter of my internet connection), but wont be saved.

What i've tried:

- chmod 777 the uploads map offcourse
- using absolute path in stead of relative
- tried totally other directory
- with or without slashes in the upload folder variable

and NOTHING works

4
dashbord
Re: Problem with mydownloads upload hack
  • 2004/9/6 23:52

  • dashbord

  • Just popping in

  • Posts: 39

  • Since: 2004/4/19


Did you make a thumbs folder?

Default setting is

xoops/uploads ---> upload folder
xoops/uploads/thumbs ---> thumbnail folder

and try zip or pdf first.
Image uploading need a PHP GD-libraly.

good luck!

5
rickh
Re: Problem with mydownloads upload hack
  • 2004/9/7 19:25

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


Yes i've tried lots of other file formats and made a thumbnail folder (and chmod 777), but nothing will be uploaded at all (uploads directory on ftp remains empty).

Some other information:
I've installed XOOPS in http:///cms

uploads directory is: http:///cms/uploads

Maybe the PHP configuration on the server does not allow me to upload? But it's strange that the XOOPS image upload function does work properly, even as a photo gallery module. So I don't thing it's a security restriction or something like that.

This is the fileup.ini.php that i've configured:

Quote:

//
// Form style section
//
$def_form = 0; // Default post form style. 0=Simple 1=Normal
$simple_smilies = 1; // Use Smilies Option for Simple Form
//
// Upload File section
//
define( 'UPLOADS' , 'cms/uploads/' ); // upload folder for files
define( 'UPLOAD_ACCLEVEL' , 0 ); // 0 = Guest upload ok, 1 = xoopsUser, 2 = Auther(Admin), Default = 1
define( 'GUEST_DOWNLOAD' , 0 ); // Guest Download Acceptable 0 = No , 1 = YES
$denyUID = array(0,99999); // Set deny naughty user's UID. It's work with UPLOAD_ACCLEVEL 1
//
// Image and Thumbnail Setting
//
$gd_ver = 0; // PHP GD Library Version (0:Not support, 1:Ver 1, 2:Ver 2)
$img_dir = "cms/uploads/"; // image folder ( You have to create this folder if you change. )
$thumb_dir = "cms/uploads/thumbs/"; // Thumb image folder ( You have to create this folder. )
$thumb_ext = ".+\.jpe?g$|.+\.png$|.+\.gif$"; // Thumb image target file extentions
$w = 140; // Thumb target width
$h = 160; // Thumb target height
//
// for Japanese
//
//define( 'SAVE_AS_MBSTR' , 'SJIS' ); // In case of multi-byte filename ( SJIS, UTF-8,EUC-JP, etc... )
//define("_FILEUP_TITLE", "źÉÕ¥Õ¥¡¥¤¥ë¡§"); // File up title for your language
//define("_FILEUP_USAGE","
¥×¥ì¥Ó¥å¡¼¤ò¼Â¹Ô¤¹¤ë¤ÈźÉÕ¥Õ¥¡¥¤¥ëÍó¤Ï¥¯¥ê¥¢¤µ¤ì¤Þ¤¹¡£"); // Add Message for About Post
//define("_FILEUP_ERROR","¥À¥¦¥ó¥í¡¼¥É¤ò¹Ô¤¦¤Ë¤Ï¥æ¡¼¥¶ÅÐÏ¿¤ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£"); // Error message when reject guest download /*
//
// for English
//

define( 'SAVE_AS_MBSTR' , 'UTF-8' ); // In case of multi-byte filename ( SJIS, EUC-JP, etc... )
define("_FILEUP_TITLE", "Upload File :"); // File up title for your language
define("_FILEUP_USAGE","
The upload file name is clear when you pushed preview."); // Add Message about post
define("_FILEUP_ERROR","You must signup before download."); // Error message when reject guest download /*

// Max upload file size
// If you want set upper 2M, You must change php.ini
// memory_limit = 8M (default)
// post_max_size = 8M (default)
// upload_max_filesize =2M (default)
$maxfilesize = 2000000; // 2MB for News

// Acceptable MIME Content-Type
$subtype = "wav|gif|jpe?g|png|bmp|zip|lzh|pdf|excel|powerpoint|octet-stream|x-pmd|x-mld|x-mid|x-smd|x-smaf|x-mpeg";

// embedding image MIME Content-Type
$imgtype = "gif|jpe?g|png|bmp|x-pmd|x-mld|x-mid|x-smd|x-smaf|x-mpeg";

// Reject Ext. name
$viri = "cgi|php|jsp|pl|htm";

Maybe u have some other tips i can try??

6
rickh
Re: Problem with mydownloads upload hack
  • 2004/9/7 20:10

  • rickh

  • Just popping in

  • Posts: 94

  • Since: 2004/4/9 6


when i enable the PHP debug mode, i get the following message when posting a news message with attachment:

Quote:
Warning [PHP]: open_basedir restriction in effect. File is in wrong directory in file modules/news/include/fileup.inc.php line 70


what does that mean?

7
dashbord
Re: Problem with mydownloads upload hack
  • 2004/9/8 2:01

  • dashbord

  • Just popping in

  • Posts: 39

  • Since: 2004/4/19


It seems miss setting about folder dir.

If the cms folder mean XOOPS root then you have to set '/upload/' and '/upload/thumbs/'.

Login

Who's Online

141 user(s) are online (19 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits