The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End upload pdf and create link to download

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #29880

    hi there
    i’m looking for tips’n’tricks to build a script that allow an admin to upload pdf file and automatically in another page there’s a link to download that file.

    any suggestion?

    thanks a lot


    Do you use WordPress? If so, when you create a new post, you can upload/insert all type of stuff – images, video, audio and media. Click that media button (its right above the box in which you type your new post) and you can then select the pdf file you want to upload. When you uploaded the file, there’s a button in the next screen that says: Insert into post. That will insert a link to the file in your post at which people can download the file.

    Ofcourse, if you don’t use wordpress – try this:, at which I’m sure you can find more info about PHP upload


    hey bob, thanks

    no i’m not using wordpress right now, i’m working on a simple php site.

    i checked out your link it doesn’t seems the right stuff that i’m looking for but it’s a nice start.


    Hiiii guys…
    can anyone answer really i need the answer also


    There’s two parts to this: the file upload bit and the link generating bit. You probably need to make sure that the file gets uploaded to a specific directory reserved for such things

    The file upload bit is covered by something like <input type=”file”….. >. The ‘action’ points to a form processor that checks out the file to make sure it’s what you think it is (size, file type etc), uploads it (to PHP’s temp directory) and then moves it to your uploaded files directory with move_uploaded_file().

    Your ‘other page’ will need some PHP code to check out the uploaded files directory and display links to anything it finds there.

    There’s a tutorial on uploading files here. I’ve not read it thru in detail but, at a glance, it seems to cover all the important bits.

    One word of warning tho – do make sure that only authorised people can use the upload form and the form processor or you’ll get all sorts of crap in there!


    Thanx alot ImpInaBox it works with me…

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Back End’ is closed to new topics and replies.