# File path for loading table

**URL:** <https://discourse.processing.org/t/file-path-for-loading-table/14697>\
**Category:** Beginners\
**Created:** [October 14, 2019, 4:41pm UTC](https://discourse.processing.org/t/file-path-for-loading-table/14697 "2019-10-14T16:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuilhermeVolker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/guilhermevolker/32/5657_2.png) [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Post date:** [October 14, 2019, 4:41pm UTC](https://discourse.processing.org/t/file-path-for-loading-table/14697/1 "2019-10-14T16:41:23Z")

</div>

I have to load a file in a different folder.  
the current folder is “FileConverter”, and i have to open at “upload/FDR.csv”

![1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b8d5566c1fa40dd07244ef23e6251c2b3301a5c0.png)

I try the following code but it doesent work

```auto
function preload(){
  
    table = loadTable("../upload/FDR.csv",'csv','header');   
  }

  function setup(){
...

```

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 14, 2019, 5:18pm UTC](https://discourse.processing.org/t/file-path-for-loading-table/14697/2 "2019-10-14T17:18:51Z")

</div>

> [@GuilhermeVolker](#):
>
> I have to load a file in a different folder.

For privacy & security reasons browsers block any access to files outside the folder where the JS app (its “.html” file) is running! 👁

For such cases, we can request the user to drop the file onto an element: 💧

> **[reference | p5.js](https://p5js.org/reference/#/p5.Element/drop)**
>
> p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.

[http://p5js.SketchPad.cc/sp/pad/view/ro.CYTkHWj9smgw8Q/latest](http://p5js.SketchPad.cc/sp/pad/view/ro.CYTkHWj9smgw8Q/latest)

Or open a file dialog: 📁

> **[reference | p5.js](https://p5js.org/reference/#/p5/createFileInput)**
>
> p5.js a JS client-side library for creating graphic and interactive experiences, based on the core principles of Processing.

> <https://gist.github.com/GoSubRoutine/f5261f83d9600c495e384d9f5824a077>

> <https://gist.github.com/GoSubRoutine/f5261f83d9600c495e384d9f5824a077>
