<!--#include file="qvodcms_fck_config.asp"-->
<!--#include file="qvodcms_util.asp"-->
<!--#include file="qvodcms_io.asp"-->
<!--#include file="qvodcms_commands.asp"-->
<!--#include file="qvodcms_uploadclass.asp"-->
<%

Sub SendError( number, text )
	SendUploadResults number, "", "", text
End Sub

' Check if this uploader has been enabled.
If ( ConfigIsEnabled = False ) Then
	SendUploadResults "1", "", "", "This file uploader is disabled. Please check the ""qvodcms_editor_server/asp/qvodcms_fck_config.asp"" file"
End If

	Dim sCommand, sResourceType, sCurrentFolder

	sCommand = "QuickUpload"

	sResourceType = Request.QueryString("Type")
	If ( sResourceType = "" ) Then sResourceType = "File"

	sCurrentFolder = GetCurrentFolder()

	' Is Upload enabled?
	if ( Not IsAllowedCommand( sCommand ) ) then
		SendUploadResults "1", "", "", "The """ & sCommand & """ command isn't allowed"
	end if

	' Check if it is an allowed resource type.
	if ( Not IsAllowedType( sResourceType ) ) Then
		SendUploadResults "1", "", "", "The " & sResourceType & " resource type isn't allowed"
	end if

	FileUpload sResourceType, sCurrentFolder, sCommand

%>
