how to view files uploaded in mysql? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how to view files uploaded in mysql?

sandalvinccisandalvincci Posts: 1Member
hello there...
im developing a system currently.
i have this button which enables user to upload a file into mysql server.
after uploading, user can view the files uploaded by clinking on the file name.

i have done with uploading button, and it works nicely.
but i did not find a way to do the view function.

anyone has any idea?


  • Josh CodeJosh Code Posts: 675Member
    Let's be sure that this is understood right.

    You have a file upload form and processing the form is writing the files on hard disk on the server. You are not writing file contents into the database, right? That would be quite unconventional, if you were.

    You want a way to list the files that have been uploaded, right? If you're writing files to a specific folder, you can use PHP's readdir function to iterate through all files in that directory. This is most likely what you want and uploading to a specific directory that is used exclusively for uploads would be a great way to organize the information.

  • Josh CodeJosh Code Posts: 675Member
    This post has been deleted.
Sign In or Register to comment.