Browse: Home / Functions /

learndash_fileupload_process

learndash_fileupload_process( array $uploadfiles,  int $post_id )

Handles an assignment file uploading process.


Description #


Parameters #

$uploadfiles

(array) (Required) An array of uploaded files data.

$post_id

(int) (Required) The assignment ID.


Return #

(array) Returns file data after upload such as file name and file URL.


Source #

File: includes/ld-assignment-uploads.php


Changelog #

Changelog
Version Description
4.10.3 New files are created with a unique ID and in the /uploads/learndash/assignments/ directory.
2.1.0 Introduced.