Jump to content

API:EPrints/DataObj/UploadProgress: Difference between revisions

From EPrints Documentation
Pod2wiki (talk | contribs)
Created page with "<!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment'..."
 
Pod2wiki (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 75: Line 75:


The number of bytes of the file being uploaded that have already been received.
The number of bytes of the file being uploaded that have already been received.
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Pod2Wiki= -->
</div>
<!-- Pod2Wiki=head_references_and_related_objects -->
==REFERENCES AND RELATED OBJECTS==
None.
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Pod2Wiki= -->
</div>
<!-- Pod2Wiki=head_instance_variables -->
==INSTANCE VARIABLES==
See [[API:EPrints/DataObj#INSTANCE_VARIABLES|EPrints::DataObj]].


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
Line 216: Line 238:
{{API:Copyright}}
{{API:Copyright}}
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Pod2Wiki= -->
</div>
<!-- Pod2Wiki=end -->
COPYRIGHTCopyright 2021 University of Southampton. EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Pod2Wiki= -->
</div>
<!-- Pod2Wiki=end -->
LICENSE<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Edit below this comment -->

Latest revision as of 18:47, 10 January 2022

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME[edit]

EPrints::DataObj::UploadProgress - uploads-in-progress state

User Comments


DESCRIPTION[edit]

This is an internal class, which inherits from EPrints::DataObj. It is just for managing the progress of files being uploaded to EPrints.

User Comments


CORE METADATA FIELDS[edit]

User Comments


progressid (text)[edit]

The unique identifier for an upload progress. This is a 32-character hexadecimal string.

User Comments


expires (int)[edit]

The time (in seconds since the start of the last epoch) when this upload progress will expire if it is not completed.

User Comments


size (bigint)[edit]

The total size in bytes of the file being uploaded.

User Comments


size (bigint)[edit]

The number of bytes of the file being uploaded that have already been received.

User Comments


REFERENCES AND RELATED OBJECTS[edit]

None.

User Comments


INSTANCE VARIABLES[edit]

See EPrints::DataObj.

User Comments


METHODS[edit]

User Comments


Constructor Methods[edit]

User Comments


new_from_request[edit]

$progress = EPrints::DataObj::UploadProgress->new_from_request( $session )

Creates and returns a new upload progress data object based on the current request.

Returns undef if no file upload is pointed to by this request.

User Comments


Class Methods[edit]

User Comments


get_system_field_info[edit]

$fields = EPrints::DataObj::UploadProgress->get_system_field_info

Returns an array describing the system metadata of the upload progress dataset.

User Comments


get_dataset_id[edit]

$dataset = EPrints::DataObj::UploadProgress->get_dataset_id

Returns the id of the EPrints::DataSet object to which this record belongs.

User Comments


remove_expired[edit]

$progress = EPrints::DataObj::UploadProgress->remove_expired( $session )

Remove all upload progress data objects where expired is earlier than the current time.

User Comments


get_defaults[edit]

$defaults = EPrints::DataObj::UploadProgress->get_defaults( $session, $data )

Returns default values for this object based on the starting $data.

Sets expires to one week from now.

User Comments


Object Methods[edit]

User Comments


update_cb[edit]

$progress->update_cb( $filename, $buffer, $bytes_read, $progress )

Updates callback for use with CGI. Limits database writes to a minimum of 1 second between updates of the received field to the value provided by $bytes_read.

User Comments


SEE ALSO[edit]

EPrints::DataObj and EPrints::DataSet.

User Comments


COPYRIGHT[edit]

© Copyright 2000-2024 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE[edit]

This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments