Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. approve file

approve file

Scheduled Pinned Locked Moved C#
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Diya Ayesa
    wrote on last edited by
    #1

    hey How can I have it so someone can click on a "Click here to Upload" button, and then select a file off their computer, (And preferably I'd like to be able to limit what kinda files they could upload to just .rar files) once they upload the file, an admin on the website can view the uploaded file, and click an "approve or Deny" button, and be able to download the file.

    L 1 Reply Last reply
    0
    • D Diya Ayesa

      hey How can I have it so someone can click on a "Click here to Upload" button, and then select a file off their computer, (And preferably I'd like to be able to limit what kinda files they could upload to just .rar files) once they upload the file, an admin on the website can view the uploaded file, and click an "approve or Deny" button, and be able to download the file.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Ayesha Atif wrote:

      How can I have it so someone can click on a "Click here to Upload" button, and then select a file off their computer, (And preferably I'd like to be able to limit what kinda files they could upload to just .rar files)

      There's an option on the filedialog that let's one specify a filter. The same thing that causes users to rename the file-extension when sending a zip-file using GMail.

      Ayesha Atif wrote:

      once they upload the file, an admin on the website can view the uploaded file, and click an "approve or Deny" button, and be able to download the file.

      Uploading a file, putting it somewhere on the server, have "someone" click a button - those are basic operations. Did you look for an example? We can help with specific coding-questions; as is, this sounds like a request for an ASP.NET application.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      F 1 Reply Last reply
      0
      • L Lost User

        Ayesha Atif wrote:

        How can I have it so someone can click on a "Click here to Upload" button, and then select a file off their computer, (And preferably I'd like to be able to limit what kinda files they could upload to just .rar files)

        There's an option on the filedialog that let's one specify a filter. The same thing that causes users to rename the file-extension when sending a zip-file using GMail.

        Ayesha Atif wrote:

        once they upload the file, an admin on the website can view the uploaded file, and click an "approve or Deny" button, and be able to download the file.

        Uploading a file, putting it somewhere on the server, have "someone" click a button - those are basic operations. Did you look for an example? We can help with specific coding-questions; as is, this sounds like a request for an ASP.NET application.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        F Offline
        F Offline
        Forbiddenx
        wrote on last edited by
        #3

        You can also sometimes detect the type of file beyond the standard ext by readings it into binary and checking the first couple of bytes to see if its a zip file, mp3.. etc.. Its a method to prevent people form uploading say exe with a .jpg extension.. I have done it with Mp3's and it worked pretty good.

        =)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups