Timeline for Get the real path of a file
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 23, 2018 at 20:37 | history | edited | avpaderno♦ | CC BY-SA 4.0 |
improved formatting and punctuation
|
Dec 23, 2018 at 18:00 | history | tweeted | twitter.com/StackDrupal/status/1076900382532661248 | ||
Dec 23, 2018 at 17:38 | history | edited | Nisam | CC BY-SA 4.0 |
Readable question
|
Oct 30, 2018 at 10:02 | vote | accept | Nisam | ||
Aug 13, 2018 at 20:20 | comment | added | usernameabc |
I had a similar situation, but ended up going with file_create_url because it can handle managed files (These are files that have either been uploaded by users or were generated automatically (for example through CSS aggregation)) and shipped files (those outside of the files directory, which ship as part of Drupal core or contributed modules or themes)
|
|
Jul 17, 2017 at 11:39 | vote | accept | Nisam | ||
Oct 30, 2018 at 10:02 | |||||
Feb 23, 2017 at 10:59 | answer | added | sanzante | timeline score: 19 | |
Mar 8, 2016 at 16:29 | answer | added | Nisam | timeline score: 33 | |
Mar 8, 2016 at 14:29 | comment | added | Aram Boyajyan | Post it as a response and accept it as solution. That will help others with the same question. | |
Mar 8, 2016 at 9:54 | comment | added | Nisam | I got the answer in terms of drupal 8 it is ` \Drupal::service('file_system')->realpath('public://2016-03/Places_2.xlsx')` | |
Mar 8, 2016 at 7:07 | comment | added | Berdir | For reading with what? That path works with almost everything, e.g. file_get_contents('public://...') works just fine. | |
Mar 8, 2016 at 6:44 | comment | added | Mohammed Gomma | api.drupal.org/api/drupal/core!includes!file.inc/function/… | |
Mar 8, 2016 at 6:26 | history | edited | Nisam | CC BY-SA 3.0 |
question make it more specif
|
Mar 8, 2016 at 6:08 | history | asked | Nisam | CC BY-SA 3.0 |