Daniweb,
Just new in your forum,
Kindly assist me we the dhtml with css codes for uploading pictures, videos, mp3 and mp4, I want to include that in the site that I am designing.

Dongold.

Dani AI

Generated

opened the thread asking for upload "codes" and and @rajarajan2017 started the conversation. The practical work for uploads spans three areas: client-side UX, server-side handling, and storage/security. Designer-facing priorities are clear: give users a simple, accessible chooser (plus drag-and-drop), show progress and clear errors, enforce client-side checks for file type/size, and provide meaningful thumbnails/previews for images and playable previews for audio/video where possible.

Implementation options that match good UX without reinventing the wheel:

  • Use a maintained client library (for example, Dropzone or Uppy) to get drag-and-drop, progress, and retries out of the box.
  • Prefer direct-to-storage flows (cloud storage with presigned uploads) when scaling and security are concerns; that keeps large files off the app server and reduces backend work.
  • Server-side responsibilities include validating MIME type and size, normalizing and sanitizing filenames, virus scanning, and creating derived assets (image thumbnails, video transcodes) asynchronously.
    Security and UX cautions:
  • Never trust client-side checks alone; always validate on the server.
  • Show upload limits up front, and return human-friendly error messages (not raw status codes).
  • For audio/video, consider server-side transcoding and bitrate/format fallbacks so media plays across devices.

For a beginner, start with a hosted or library-backed solution to learn the flow, then add custom server processing when needed. raised the backend concern earlier; treat that as a design constraint rather than a blocker.

Recommended Answers

All 2 Replies

You can't use html and css to do this.


You will need to use PHP - use google to find php uploader scripts.

Of course the question then arises - what are you going to do with these images and things? If you plan to use them to dynamically style pages, you'll probably need a database that stores the file names. And as you are a beginner, from the question you asked and the way you asked it, you are effectively asking for someone to build you a web site. Because that would need a lot of custom coding to make dynamic pages.

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.