Verifies if there's enough space to upload a new file on the given portal

Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool HasSpaceAvailable(
	int portalId,
	long fileSizeBytes
)
Visual Basic
Public Function HasSpaceAvailable ( 
	portalId As Integer,
	fileSizeBytes As Long
) As Boolean

Parameters

portalId
Type: System..::..Int32
Id of the portal
fileSizeBytes
Type: System..::..Int64
Size of the file being uploaded

Return Value

True if there's enough space available to upload the file

Implements

IPortalController..::..HasSpaceAvailable(Int32, Int64)

See Also