If it has a plug, it's IT stuff

Sep 30 2008   7:22AM GMT

[TLBAT] Intranet: upload files

alessandro.panzetta Alessandro Panzetta Profile: alessandro.panzetta

So here uit comes the first post in the Admin section of our Download Center!

In order to have an upload feature in our administration section I used the Persist ASP Upload component that gave me a better control on the upload process. I know it’s not free but when I designed this project (about 2002!!!)  this is what I used so if you prefer another component justuse your own 🙂

A file that we can now download for free is the aspupload.inc …you don’t even have to download it, just copy the code below and save it to your disc to a text file named aspupload.inc



‘    AspUpload Constants Include File

‘    Copyright (c) Persits Software, Inc. All rights reserved.

‘ LogonUser’s Type Parameter
const        LOGON_INTERACTIVE    = 2
const        LOGON_NETWORK        = 3
const        LOGON_BATCH            = 4
const        LOGON_SERVICE        = 5

‘ Generic Access Types
const        GENERIC_ALL            = &H10000000
const        GENERIC_EXECUTE        = &H20000000
const        GENERIC_WRITE        = &H40000000
const        GENERIC_READ        = &H80000000

‘ Standard Access Types
const        DELETE                = &H00010000
const        READ_CONTROL        = &H00020000
const        WRITE_DAC            = &H00040000
const        WRITE_OWNER            = &H00080000
const        WRITE_SYNCHRONIZE    = &H00100000

‘ Specific Access Types for Files

const        FILE_GENERIC_READ        = &H120089
const        FILE_GENERIC_WRITE        = &H120116
const        FILE_GENERIC_EXECUTE    = &H1200A0

const        FILE_READ_DATA            = &H0001
const        FILE_WRITE_DATA            = &H0002
const        FILE_APPEND_DATA        = &H0004
const        FILE_READ_EA            = &H0008
const        FILE_WRITE_EA            = &H0010
const        FILE_EXECUTE            = &H0020
const        FILE_READ_ATTRIBUTES    = &H0080
const        FILE_WRITE_ATTRIBUTES    = &H0100

‘ File Attributes
const        FILE_ATTRIBUTE_READONLY        = &H1
const        FILE_ATTRIBUTE_HIDDEN        = &H2
const        FILE_ATTRIBUTE_SYSTEM        = &H4
const        FILE_ATTRIBUTE_DIRECTORY    = &H10
const        FILE_ATTRIBUTE_ARCHIVE        = &H20
const        FILE_ATTRIBUTE_NORMAL        = &H80
const        FILE_ATTRIBUTE_TEMPORARY    = &H100
const        FILE_ATTRIBUTE_COMPRESSED    = &H800

‘ Sort-by Attributes for Directory Collection.
‘ These are NOT standard Windows NT constants
const        SORTBY_NAME                =    1
const        SORTBY_TYPE                =    2
const        SORTBY_SIZE                =    3
const        SORTBY_CREATIONTIME        =    4
const        SORTBY_LASTWRITETIME    =    5
const        SORTBY_LASTACCESSTIME    =    6

 =====END CODE=====

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: