Hello i want to make upload button so users can upload images/gifs/videos/music but i cannot understand how i can do that i fuond a code on w3schools but it just uploads the image to folder in my computer called /uploads
i want to store the images into database which they will be available/shown in the website... please someone help me
Recommended Answers
Jump to PostI suggest storing the filename in the database, and not the file. Just add an insert query when
move_uploaded_file
is successful.
Jump to PostStefan_1 there is the concept of repository that works together with db. Very quickly how it works : we have a folder named repository above public_html (not accessible through browsers) there we can have sub folders for the different scope of the image / file. Then we have a main …
All 5 Replies
Stefan_1
94
Posting Pro in Training
pritaeas
2,080
¯\_(ツ)_/¯
Moderator
Featured Poster
Stefan_1
94
Posting Pro in Training
Stefan_1
94
Posting Pro in Training
jkon
535
Posting Whiz in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.