approve file
-
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.
-
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.
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[^]
-
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[^]
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.
=)