Jump to content

Script thats baffling me


a01020304

Recommended Posts

I have a script that uploads files direct to the server and a specific folder and also one that allows you to download the uploaded files.

 

The upload script works fine in that it uploads the file to the folder., however if I change the config file to the folder the download script uses the file seems to upload fine but when i try and download it, all it wants to do is open the download.php file and not the actual file I uploaded.

 

I have uploaded the scripts to http://gmdesign.org.uk/testfiles

 

These are just the raw scripts I have not changed the upload script to upload files to the download folder.

The folder shown as alteredupload, has the upload going directly to the download folder.

 

The screeshots of the download screen and what happens when the altered script is used is attached.

 

I have also uploaded the scripts too. you will be able to see the passwords (in the config file)  there as not publishing them on the open forum.

 

 

What i would like is to have two seperate scripts as one would be for the person uploading the files and the other would be specifically for the downloader.

The main problem I am having is getting the uploaded files to download,

 

Any suggestions?

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

I do not think you realise the actual issue???

 

Click on the link I supplied above

click on each of the folders, upload and download, you will see both scripts work fine

 

if you click on the folder alteredupload you will also see the script works fine

 

the issue is when i change the config of the upload file from: dir"    =>"uploads/folder1/",    to  dir"    =>"../downloads/download/folder1/",    the file thats transfered does not download, but the download.php tries to open only.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.