| View previous topic :: View next topic |
| Author |
Message |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Sun May 24, 2009 7:33 am Post subject: Mime types |
|
|
I have a upload script and it does not allow the .exe files to be uploaded even though i added many mime types!
Here are the mime types:
"magnus-internal/cgi"
"application/unknown"
"application/exe"
"application/octet-stream"
"application/x-exe"
"vms/exe"
"application/x-winexe "
"application/msdos-windows"
"application/x-msdos-program"
"application/dos-exe"
"binary/exe");
Are there any more of .exe mime types? cuz it doesn't let me to upload .exe files >.>
And yes, lot's of other formats like zip, jpeg ect works.
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sun May 24, 2009 12:28 pm Post subject: |
|
|
Please check whenever your provider/hoster does support the act of uploading exes or not.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
Eraser Grandmaster Cheater
Reputation: 0
Joined: 23 Jul 2008 Posts: 504 Location: http://www.youtube.com/PCtrainers
|
Posted: Sun May 24, 2009 3:46 pm Post subject: |
|
|
| Well, i had the same script like a month ago. It had no exception list and any file format could have been uploaded including exe's (and php, html files ect so i had to add allowed ext. list because of security.)
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sun May 24, 2009 5:15 pm Post subject: |
|
|
| Eraser wrote: | | Well, i had the same script like a month ago. It had no exception list and any file format could have been uploaded including exe's (and php, html files ect so i had to add allowed ext. list because of security.) |
Why don't you do this:
Make a script that echos the mine-type when uploading a file. Then upload the file you wanted. Then add it to exception list.
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sun May 24, 2009 6:04 pm Post subject: |
|
|
| I would add the mime-types of the files which ARE allowed or check for the file-extionsions instead of the mime-types.
|
|
| Back to top |
|
 |
|