Question #48798 on phpns changed:

    Status: Answered => Solved

RACooper confirmed that the question is solved:
here is my archive of just the modified/added files to incorporate the
upload functionality:

I don't know anything about bazaar so feel free to incorporate it
however you want.  I've included the readme for in the
docs folder of the archive.

1) modified the uploader.php from it's original to ignore index.php in the 
../files/ folder, so any attempt to access the folder directly will result in 
being bounced back to the site homepage.

2) added .pdf as an allowed extension.

3) changed $maximum_file_size from 50k to 8MB.

4) changed the upload directory from "files/" to "../files/" on line 29.
did not change line 30, so "files/" should be in site root.

5) modified upload.php to output into the $content variable to integrate
with phpns templates, added note that spaces in upload filenames would
be converted to underscores, and changed approx upload max calculation
to be MB instead of KB.

6) added upload.php to the $rep_patt[] array in inc/global_files.php.

7) added images/upload.png, borrowed from the Tango Icons set.

8) added "upload file" link to menu <UL> in

if you find any problems with it please let me know, you can post a blog
comment at just remember
that I moderate all comments, so it may not show up immediately but I
will be notified when it's entered.

You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to