1
bcolemont
How to let users upload files to website
  • 2006/4/4 12:56

  • bcolemont

  • Just popping in

  • Posts: 3

  • Since: 2006/4/4 1


Hi all

I am very new to xoops, and my first impression is WOW.
Now, one thing bothers me, I have created a download section, but I want also that users can upload files to there (instead of submitting it, cuz that does not realy uploads the file to my server).

Is there any option or a module for that?

Thx in advance

2
bluenova
Re: How to let users upload files to website

Hi,

Welcome to xoops, I'm glad you're having fun.

Take a look here for the latest version of wf-downloads, which IMO is the best download module available. You will also find other options in the module repository.

Happy xoopsing

3
bcolemont
Re: How to let users upload files to website
  • 2006/4/7 13:04

  • bcolemont

  • Just popping in

  • Posts: 3

  • Since: 2006/4/4 1


Thx for the reply, and indeed WF downloads is great

But when I want to upload a file, it always says that the file is to big :-s I allready placed in the max file size 0 and 99999999999 but both are not working.
Any ideas?

4
m0nty
Re: How to let users upload files to website
  • 2006/4/7 14:07

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


what does it say the max upload size is on the index page? in the server info part..

makes no difference what u set ur max size to, if the php.ini value for max size is set to a smaller limit..

you will need to ask your host to change the limit in php.ini on your server..

5
bcolemont
Re: How to let users upload files to website
  • 2006/4/7 14:10

  • bcolemont

  • Just popping in

  • Posts: 3

  • Since: 2006/4/4 1


If I am not wrong,... wasn't there an option in a config file in your root html dir that you can overwrite the settings in the php.ini file then?
I don't remember where it was,...

6
m0nty
Re: How to let users upload files to website
  • 2006/4/7 14:20

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


sure, search for .htaccess

http://www.php.net lists all the settings, but i don't think max file size can be changed with htaccess tho.. but i maybe wrong..

7
skenow
Re: How to let users upload files to website
  • 2006/4/7 17:41

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You are correct - the htaccess file cannot be used to set the max file upload size. It needs to be done in php.ini by the host (or you, if you have access)

8
Dave_L
Re: How to let users upload files to website
  • 2006/4/7 18:10

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


According to the PHP manual, that parameter can be set in an .htaccess file. Reference:http://us2.php.net/manual/en/ini.php#ini.list

The relevant parameters here are post_max_size and upload_max_filesize.

-----

@bcolemont:

You can check your settings with the one-line script
<?php phpinfo() ?>
placed in a file in the same directory as the script you're having trouble with.

Can you upload small files? E.g. 100 bytes?

Also, I don't advise setting a limit such as this to an unreasonable value like 99999999999. That might get "wrapped around" to zero or a negative value.

Login

Who's Online

189 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 189


more...

Donat-O-Meter

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

Latest GitHub Commits