Jump to content

unable to download file from php

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
vsr

vsr

    Newbie

  • Members
  • Pip
  • 1 posts
I can't download any file. When I click the download link, the following message displays.

File not available
Either the file you requested does not exist or you are not permitted to download it using this page.

I am using Microsoft IE
7.0 and firefox browser

Inputs: I upload one file file in an application which is in php script. But iam not able to download the file .

If u provide the example code , it is useful for us
Thanks
vsr

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What is your current code doing?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Feral

Feral

    Programmer

  • Members
  • PipPipPipPip
  • 162 posts

Quote

What is your current code doing?

and

Have you checked the server to make sure the file is actually being uploaded?

#4
chad

chad

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
when you have access to your server and if you are using ftp, make sure that you have clicked the "write" command on the folders of your uploads to allow uploads.

I think you can also do this using cpanel. i havent tried it out yet but im sure its possible

#5
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Please post your code here so we can help you :)

#6
chad

chad

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
yes please do post the code as well
it might be something to do with the code for uploading

like move_uploaded_file($_FILE['file_name']['tmp_name'], <destination file>)

#7
Guest_Jaan_*

Guest_Jaan_*
  • Guests
You can also use PHP: copy - Manual instead of move_uploaded_file