Manual:Uploadstash table/fr

The uploadstash table stores information about newly uploaded files before they're moved into the actual filestore, see also. It contains information on incomplete uploads; these can e.g. happen when the user left the upload page before the upload completed. The maintenance script can be used to remove orphaned entries from this table.

us_id
Clé primaire.

us_user
Utilisateur ayant téléversé le fichier.

us_key
Clé du fichier. Ceci est la manière pour les applications, de rechercher le fichier. Ceci pourrait disparaître, ou devenir la clé primaire.

us_orig_path
Chemin originel.

us_path
Chemin temporaire de l'emplacement du fichier.

us_source_type
Type de téléversement par lequel le fichier est arrivé (quelques fois). Par exemple : "url"

us_timestamp
Date et heure à laquelle le fichier a été ajouté

us_status
Par exemple : "finished"

us_chunk_inx
Chunk counter starts at 0, current offset is stored in us_size

us_props
Propriétés de fichier sérialisé de File::getPropsFromPath

us_size
Propriétés de fichier de. Ceci peut s'avérer inutile.

us_sha1
This hash comes from File::sha1Base36, and is 31 characters

us_mime
Combinaison de et. Par exemple : image/png

us_media_type
Media type as defined by the MEDIATYPE_xxx constants, should duplicate definition in the image table.

us_image_width
Propriété spécifique des images.

us_image_height
Propriété spécifique des images.

us_image_bits
Propriétés spécifiques des images.

Résumé du schéma
 +-+-+--+-+-++ +-+-+--+-+-++ +-+-+--+-+-++
 * Field          | Type                                                                                                        | Null | Key | Default | Extra          |
 * us_id          | int(10) unsigned                                                                                            | NO   | PRI | NULL    | auto_increment |
 * us_user        | int(10) unsigned                                                                                            | NO   | MUL | NULL    |                |
 * us_key         | varbinary(255)                                                                                              | NO   | UNI | NULL    |                |
 * us_orig_path   | varbinary(255)                                                                                              | NO   |     | NULL    |                |
 * us_path        | varbinary(255)                                                                                              | NO   |     | NULL    |                |
 * us_source_type | varbinary(50)                                                                                               | YES  |     | NULL    |                |
 * us_timestamp   | binary(14)                                                                                                  | NO   | MUL | NULL    |                |
 * us_status      | varbinary(50)                                                                                               | NO   |     | NULL    |                |
 * us_chunk_inx   | int(10) unsigned                                                                                            | YES  |     | NULL    |                |
 * us_props       | blob                                                                                                        | YES  |     | NULL    |                |
 * us_size        | int(10) unsigned                                                                                            | NO   |     | NULL    |                |
 * us_sha1        | varbinary(31)                                                                                               | NO   |     | NULL    |                |
 * us_mime        | varbinary(255)                                                                                              | YES  |     | NULL    |                |
 * us_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  |     | NULL    |                |
 * us_image_width | int(10) unsigned                                                                                            | YES  |     | NULL    |                |
 * us_image_height | int(10) unsigned                                                                                           | YES  |     | NULL    |                |
 * us_image_bits  | smallint(5) unsigned                                                                                        | YES  |     | NULL    |                |

 +-+-+--+-+-++ +-+-+--+-+-++ +-+-+--+-+-++
 * Field          | Type                                                                                                        | Null | Key | Default | Extra          |
 * us_id          | int(10) unsigned                                                                                            | NO   | PRI | NULL    | auto_increment |
 * us_user        | int(10) unsigned                                                                                            | NO   | MUL | NULL    |                |
 * us_key         | varbinary(255)                                                                                              | NO   | UNI | NULL    |                |
 * us_orig_path   | varbinary(255)                                                                                              | NO   |     | NULL    |                |
 * us_path        | varbinary(255)                                                                                              | NO   |     | NULL    |                |
 * us_source_type | varbinary(50)                                                                                               | YES  |     | NULL    |                |
 * us_timestamp   | varbinary(14)                                                                                               | NO   | MUL | NULL    |                |
 * us_status      | varbinary(50)                                                                                               | NO   |     | NULL    |                |
 * us_chunk_inx   | int(10) unsigned                                                                                            | YES  |     | NULL    |                |
 * us_props       | blob                                                                                                        | YES  |     | NULL    |                |
 * us_size        | int(10) unsigned                                                                                            | NO   |     | NULL    |                |
 * us_sha1        | varbinary(31)                                                                                               | NO   |     | NULL    |                |
 * us_mime        | varbinary(255)                                                                                              | YES  |     | NULL    |                |
 * us_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  |     | NULL    |                |
 * us_image_width | int(10) unsigned                                                                                            | YES  |     | NULL    |                |
 * us_image_height | int(10) unsigned                                                                                           | YES  |     | NULL    |                |
 * us_image_bits  | smallint(5) unsigned                                                                                        | YES  |     | NULL    |                |

 +-++--+-+-++ +-++--+-+-++ +-++--+-+-++
 * Field          | Type                                                                                                   | Null | Key | Default | Extra          |
 * us_id          | int(10) unsigned                                                                                       | NO   | PRI | NULL    | auto_increment |
 * us_user        | int(10) unsigned                                                                                       | NO   | MUL | NULL    |                |
 * us_key         | varbinary(255)                                                                                         | NO   | UNI | NULL    |                |
 * us_orig_path   | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_path        | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_source_type | varbinary(50)                                                                                          | YES  |     | NULL    |                |
 * us_timestamp   | varbinary(14)                                                                                          | NO   | MUL | NULL    |                |
 * us_status      | varbinary(50)                                                                                          | NO   |     | NULL    |                |
 * us_chunk_inx   | int(10) unsigned                                                                                       | YES  |     | NULL    |                |
 * us_props       | blob                                                                                                   | YES  |     | NULL    |                |
 * us_size        | int(10) unsigned                                                                                       | NO   |     | NULL    |                |
 * us_sha1        | varbinary(31)                                                                                          | NO   |     | NULL    |                |
 * us_mime        | varbinary(255)                                                                                         | YES  |     | NULL    |                |
 * us_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |                |
 * us_image_width | int(10) unsigned                                                                                       | YES  |     | NULL    |                |
 * us_image_height | int(10) unsigned                                                                                      | YES  |     | NULL    |                |
 * us_image_bits  | smallint(5) unsigned                                                                                   | YES  |     | NULL    |                |

 +-++--+-+-++ +-++--+-+-++ +-++--+-+-++
 * Field          | Type                                                                                                   | Null | Key | Default | Extra          |
 * us_id          | int(10) unsigned                                                                                       | NO   | PRI | NULL    | auto_increment |
 * us_user        | int(10) unsigned                                                                                       | NO   | MUL | NULL    |                |
 * us_key         | varbinary(255)                                                                                         | NO   | UNI | NULL    |                |
 * us_orig_path   | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_path        | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_source_type | varbinary(50)                                                                                          | YES  |     | NULL    |                |
 * us_timestamp   | varbinary(14)                                                                                          | NO   | MUL | NULL    |                |
 * us_status      | varbinary(50)                                                                                          | NO   |     | NULL    |                |
 * us_chunk_inx   | int(10) unsigned                                                                                       | YES  |     | NULL    |                |
 * us_size        | int(10) unsigned                                                                                       | NO   |     | NULL    |                |
 * us_sha1        | varbinary(31)                                                                                          | NO   |     | NULL    |                |
 * us_mime        | varbinary(255)                                                                                         | YES  |     | NULL    |                |
 * us_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |                |
 * us_image_width | int(10) unsigned                                                                                       | YES  |     | NULL    |                |
 * us_image_height | int(10) unsigned                                                                                      | YES  |     | NULL    |                |
 * us_image_bits  | smallint(5) unsigned                                                                                   | YES  |     | NULL    |                |

 +-++--+-+-++ +-++--+-+-++ +-++--+-+-++
 * Field          | Type                                                                                                   | Null | Key | Default | Extra          |
 * us_id          | int(10) unsigned                                                                                       | NO   | PRI | NULL    | auto_increment |
 * us_user        | int(10) unsigned                                                                                       | NO   | MUL | NULL    |                |
 * us_key         | varbinary(255)                                                                                         | NO   | UNI | NULL    |                |
 * us_orig_path   | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_path        | varbinary(255)                                                                                         | NO   |     | NULL    |                |
 * us_source_type | varbinary(50)                                                                                          | YES  |     | NULL    |                |
 * us_timestamp   | varbinary(14)                                                                                          | NO   | MUL | NULL    |                |
 * us_status      | varbinary(50)                                                                                          | NO   |     | NULL    |                |
 * us_size        | int(10) unsigned                                                                                       | NO   |     | NULL    |                |
 * us_sha1        | varbinary(31)                                                                                          | NO   |     | NULL    |                |
 * us_mime        | varbinary(255)                                                                                         | YES  |     | NULL    |                |
 * us_media_type  | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |                |
 * us_image_width | int(10) unsigned                                                                                       | YES  |     | NULL    |                |
 * us_image_height | int(10) unsigned                                                                                      | YES  |     | NULL    |                |
 * us_image_bits  | smallint(5) unsigned                                                                                   | YES  |     | NULL    |                |