Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 can I add .Hex and . bin to allow people to upload
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

funinbc
Junior Member

245 Posts

Posted - 16 December 2003 :  15:01:52  Show Profile
I was wondering if there is an easy way to add an extension to the image up load mod. currently It allows Gif and Jpeg to be uploaded I would like to add .Bin and .Hex files

funinbc
Junior Member

245 Posts

Posted - 21 December 2003 :  21:01:39  Show Profile
I forgot to say it I am using Mike's File Attachment Mod

I am trying to add .bin and .hex in to the code. I have done this so far but I still cant make them downloadable.

Here is the code for outputFile.asp:


select case extension
case ".jpg", ".jpeg", ".gif", ".bin", ".hex" '##Image File extensions
allowFile=true
ImageFileType=true
case ".txt", ".doc", ".pdf", ".bin", ".hex" '##Downloadable file extensions
allowFile=true
case else
allowFile=false
end select




I also changed myfiles.asp:

FileNamePath = "http://" & MyDomainName & UploadFolder & "/" & strDBNTUserName & "/" & Name
end if
select case FileName
case ".JPG", ".JPEG", ".GIF", ".PNG", ".BIN", ".HEX"
%>
<script>



and



select case FileName
case ".HTM", ".HTML"
Response.Write("<Font color =Teal>" & Name & "<br></font>")
case ".JPG", ".JPEG", ".GIF", ".PNG", ".BIN", ".HEX"
if AdminAllowed then





Edited by - funinbc on 21 December 2003 21:59:36
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 21 December 2003 :  21:46:51  Show Profile
Try something like this :


select case extension
    case ".jpg", ".jpeg", ".gif" '##Image File extensions
        allowFile=true
        ImageFileType=true
    case ".bin", ".hex" '##Image File extensions
        allowFile=true
        ImageFileType=false
    case ".txt", ".doc", ".pdf", ".bin", ".hex" '##Downloadable file extensions
        allowFile=true
    case else
        allowFile=false
end select


I've never used this MOD, but that might help.
Go to Top of Page

funinbc
Junior Member

245 Posts

Posted - 21 December 2003 :  22:03:55  Show Profile
That did it!!!!!!!!! thank you very much
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 21 December 2003 :  22:13:11  Show Profile
No prob, just a good guess
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07