douniao8687 2014-07-28 10:26
浏览 14

从PHP服务器在线查看文档

I am currently tasked to make a website that allows a personnel of people to select possible candidates for a job.

From here, the candidate will upload their resume online to the PHP server. After which, the candidate will view the resume for review to see whether is the candidate suits for the job. I would like to know how is it possible to allow them to download the document from the server and/or view the documents online, probably in another browser page.

Thank you! :)

  • 写回答

1条回答 默认 最新

  • dongwen7813 2014-07-28 10:38
    关注

    I would like to know how is it possible to allow them to download the document from the server and/or view the documents online, probably in another browser page.

    1. After a file was moved from the temporary upload folder to your "uploads" folder, you are able to generate a download link to the file.
    2. The file can be view "online", when the viewer opens the file in a new browser tab (by right-clicking the download link, then open in new tab) or you set target="_blank" on the link.
    3. Most modern browsers have PDF support. I would only suggest to utilize a document viewer on server side, if the download links must be protected and the user-group is rather small, because this doesn't scale well.
    评论

报告相同问题?