PHP Simplicity Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The latest version of Simplicity oF Upload is 1.3.2.

Author Topic: Download.php  (Read 2948 times)

0 Members and 1 Guest are viewing this topic.

ToMo

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
Download.php
« on: August 12, 2006, 03:03:32 AM »

How can i make to Download.php read another folder, not with those files:
FAQ.txt     2.82 KB     11-8-2006 15:21:04
History.txt    8.03 KB    11-8-2006 15:21:07
ReadMe.txt    7.27 KB    11-8-2006 15:21:08
download.php    1.17 KB    11-8-2006 23:41:23
functions.php    13.85 KB    11-8-2006 15:21:06
realpath.php    0.35 KB    11-8-2006 15:21:09
upload.php    7.96 KB    11-8-2006 16:02:17

I have make the folder "files" and i have set script to upload files to this folder but i want to Download.php read folder "files", not where the configuration is!
 ::)
« Last Edit: August 12, 2006, 04:28:06 AM by ToMo »
Logged

ToMo

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
Re: Download.php
« Reply #1 on: August 16, 2006, 11:36:39 AM »

ok i fix that.
But how can i change order from alphabetical to last added.
If someone upload file, to be on first place..
Logged

Tracy

  • Guest
Re: Download.php
« Reply #2 on: April 07, 2010, 01:05:45 PM »

ok i fix that.

How did you fix this issue? I want the same thing, but at the moment the download.php takes you to the top-level  uploads/ directory (as you say) and not to my uploads/files/ directory.

Could you tell us how you fixed it Or if anyone else knows, please post...

Cheers,

Tracy
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: Download.php
« Reply #3 on: April 11, 2010, 06:28:33 AM »

download.php was meant as a very basic utility to list uploaded files. It can be enhanced in so many ways but I would like to keep it as it is now.

If you want to list a different dir simply open download.php and look for the line:
Downloads('.'truetrue);

change the '.' to the folder you like. It can take relative or absolute path. e.g. Downloads('../myuploadfolder'truetrue);
Logged

We don't need a reason to help people
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What is the answer to one plus one? (in numbers):