ManiaLib 1.0b1 API Reference

 Class ManialinkUploadHandler

Description

Helps dealing with uploads from Manialinks

Located in /libraries/ManialinkUploadHandler.class.php (line 13)


	
			
Method Summary
 ManialinkUploadHandler __construct (string $uploadPath, string $maxSize)
 void uploadFile (string $filename)
Methods
Constructor __construct (line 30)
ManialinkUploadHandler __construct (string $uploadPath, string $maxSize)
  • string $uploadPath: The path where the file will be saved
  • string $maxSize: The maximum file size in bytes
deleteUploadedFile (line 94)

Deletes the previously uploaded file

void deleteUploadedFile ()
getUploadedFilename (line 103)

Returns the complete uploaded file name

string getUploadedFilename ()
getUploadedFilesize (line 111)

Returns the size of the uploaded file

void getUploadedFilesize ()
uploadFile (line 40)

Tries to read the specified file and save it

void uploadFile (string $filename)
  • string $filename