View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005758 | mantisbt | feature | public | 2005-06-09 10:45 | 2011-06-21 03:42 |
| Reporter | PatPowerMan | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 1.0.0a3 | ||||
| Summary | 0005758: Possibility to add a link to a uploaded file (without repeating the whole server-path) | ||||
| Description | After uploading a file called "example.zip", I can see the link for it: http://servername/php/Mantis/file_download.php?file_id=65&type=bug It would be great, If I could add a shortcut to this "example.zip" in a bugnote. But how can I link to a uploaded file? What about att:// or something like this? | ||||
| Tags | No tags attached. | ||||
|
It could be related too with the 0006607. |
|
|
You mean 0005607? |
|
|
Oops ! Sorry, you're right ! :-S |
|
|
I made a 'very quick & very dirty' Workaround for this. If you're still interested: 1.) ADD this line in the function string_display_links( $p_string ) then add the above function in the same \core\string_api.php function string_process_att_link( $p_string, $p_include_anchor=true ) {
} Because in this function are 2 new 'subfunction' called function search_attachment ( $p_att_id ) {
function show_fileicon ( $p_filename ) {
I hope, some mantis-php-pro's can have a look for this code and add it without all the disadvantage from this quick and dirty suggestion. |
|
|
With this suggestion you can link a uploaded file like this: would display: |
|