Mantis

[Resolved] Joindre un fichier

Posted by nathalie 
[Resolved] Joindre un fichier
January 14, 2009 04:23PM
bonjour,

dans un rapport détaillé de bug,je voudrais savoir quels sont les types de fichiers autorisé pour joindre un fichier.
et comment faire pour ajouter des types si besoin?

merci d'avance.
Re: Joindre un fichier
January 14, 2009 04:32PM
Il faut regarder dans le fichier de configuration.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Joindre un fichier
January 14, 2009 04:35PM
d'accord, je vais regarder.
merci.
Re: Joindre un fichier
January 14, 2009 04:49PM
je ne trouve pas sad smiley
est ce que tu peux etre plus précis stp?
merci
Re: Joindre un fichier
January 14, 2009 04:54PM
Language: PHP
################################### # Mantis File Upload Settings ###################################   # --- file upload settings -------- # This is the master setting to disable *all* file uploading functionality # # If you want to allow file uploads, you must also make sure that they are # enabled in php. You may need to add &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;file_uploads = TRUE&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; to your php.ini # # See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold, # $g_allow_reporter_upload $g_allow_file_upload = ON;   # Upload destination: specify actual location in project settings # DISK, DATABASE, or FTP. $g_file_upload_method = DATABASE;   # When using FTP or DISK for storing uploaded files, this setting control # the access permissions they will have on the web server: with the default # value (0400) files will be read-only, and accessible only by the user # running the apache process (probably "apache" in Linux and "Administrator" # in Windows). # For more details on unix style permissions: # http://www.perlfect.com/articles/chmod.shtml $g_attachments_file_permissions = 0400;   # FTP settings, used if $g_file_upload_method = FTP $g_file_upload_ftp_server = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;ftp.myserver.com&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_file_upload_ftp_user = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;readwriteuser&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_file_upload_ftp_pass = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;readwritepass&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;   # Maximum file size that can be uploaded # Also check your PHP settings (default is usually 2MBs) $g_max_file_size = 5000000; # 5 MB   # Files that are allowed or not allowed. Separate items by commas. # eg. &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;php,html,java,exe,pl&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; # if $g_allowed_files is filled in NO other file types will be allowed. # $g_disallowed_files takes precedence over $g_allowed_files $g_allowed_files = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;; $g_disallowed_files = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;   # prefix to be used for the file system names of files uploaded to projects. # Eg: doc-001-myprojdoc.zip $g_document_files_prefix = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;doc&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;   # absolute path to the default upload folder. Requires trailing / or \ $g_absolute_path_default_upload_folder = &<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;;

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Joindre un fichier
January 14, 2009 05:09PM
je cherche maintenant à augmenter la taille limite du fichier à joindre.est-ce possible?
Re: Joindre un fichier
January 14, 2009 05:10PM
C&#039;est dans la liste que j&#039;ai déjà posté un peu plus haut ($g_max_file_size).

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Joindre un fichier
January 14, 2009 05:12PM
désolé, j&#039;avais pas vue.
merci beaucoup.
Re: Joindre un fichier
January 15, 2009 09:15AM
Bonjour,

j&#039;ai verifié que mon type de fichier est accepté, j&#039;ai verifié que sa taille rentre dans la limite autorisé, et pourtant voici ce que j&#039;ai lorsque j&#039;essaye de joindre mon fichier :

APPLICATION ERROR #401
Échec de la requête de base de données.

quel est le problème?

merci de ton aide.
Re: Joindre un fichier
January 15, 2009 09:16AM
La base de données ne doit pas être capable d&#039;accepter un fichier de cette taille.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Joindre un fichier
January 15, 2009 09:26AM
d&#039;accord.
comment je peux y remédier? mon fichier fait 1 417 216 octets
Re: Joindre un fichier
January 15, 2009 09:28AM
Lire le manuel du serveur SQL et/ou changer la destination des fichiers (là encore c&#039;est écrit plus).

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Joindre un fichier
January 15, 2009 09:37AM
merci pour ton aide.
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 10
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr