Skip to content

Commit

Permalink
Modified BLOB field to LONGBLOB. Added file upload into database. Ren…
Browse files Browse the repository at this point in the history
…amed g_store_file_to to g_file_upload_method.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@587 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 28, 2001
1 parent 423dad7 commit ea5fb07
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion view_bug_advanced_page.php3
Expand Up @@ -304,7 +304,13 @@
$v2_diskfile = str_replace( $DOCUMENT_ROOT, "", $v2_diskfile );
$v2_filesize = round( $v2_filesize / 1024 );

PRINT "<a href=\"$v2_diskfile\">$v2_filename</a> ($v2_filesize KB)";
switch ( $g_file_upload_method ) {
case DISK: PRINT "<a href=\"$v2_diskfile\">$v2_filename</a> ($v2_filesize KB)";
break;
case DATABASE:
PRINT "<a href=\"$g_file_download?f_id=$v2_id&f_type=bug\">$v2_filename</a> ($v2_filesize KB)";
break;
}
if ( $i != ($num_files - 1) ) {
PRINT "<br>";
}
Expand Down

0 comments on commit ea5fb07

Please sign in to comment.