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
Stefce
146
Posting Pro
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
Stefce
146
Posting Pro
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Stefce
146
Posting Pro
Stefce
146
Posting Pro
jkon
602
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, networking, learning, and sharing knowledge.