question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs write and example of how to upload file

See original GitHub issue

Please Could you write and example how to upload a file and how can i write a direct endpoint using de app express what i mean i try to write this code using expressesjs example

` async function main() { await createConnection();

const app = createApp(AppController, { store: session => new (sqliteStoreFactory(session))({ db: ‘db.sqlite3’ }) }); app.get(‘/api/test’, (req, res) => { res.send(‘hello world’); });

const httpServer = http.createServer(app); const port = Config.get(‘settings’, ‘port’, 3000); httpServer.listen(port, () => { console.log(Listening on port ${port}...); }); } `

im tyring this because i using multer to handle the file but the example from the packege use the app express but this example didn’t work i getting 404 not found

app.get(‘/api/test’, (req, res) => { res.send(‘hello world’); });

my question is the “app” variable is the expressjs why is not working when i call the end point

thanks for the help!!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LoicPoullaincommented, Apr 4, 2019

@jcpc91 if it can help, the last version of the framework now includes support for uploading & downloading files (see here).

0reactions
jcpc91commented, Mar 20, 2019

hi thanks for you help im implemented with “multer” d

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload files and folders to Google Drive - Computer
On your computer, go to drive.google.com. At the top left, click New and then File Upload or Folder Upload. Choose the file or...
Read more >
Google Docs: Uploading Files to Google Drive - GCF Global
From Google Drive, locate and select the New button, then select File upload. Uploading a file. Locate and select the file(s) you want...
Read more >
Uploading files to Google Docs - YouTube
In order to use Google Docs you'll want to upload some documents to work on. In this episode we show you how easy...
Read more >
Upload any type of file to Google Docs / Google Drive
In your Documents List, click the Upload button and selectFiles... from the drop-down menu. · Select the file you'd like to upload to...
Read more >
Uploading to Google Docs - Open Educational Resources
1. Dragging files directly into your Documents List or collection ; 2. Clicking the Upload button and selecting Files ; Important! Once the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found