Skip to content

[DONE] API for postman upload and tested with postman#3

Open
abedinforhan wants to merge 1 commit intocoder-mars:mezbafrom
abedinforhan:postman-pload
Open

[DONE] API for postman upload and tested with postman#3
abedinforhan wants to merge 1 commit intocoder-mars:mezbafrom
abedinforhan:postman-pload

Conversation

@abedinforhan
Copy link
Copy Markdown

Need a review

app.get('/', (req, res) => res.render('index',{
files:[]
app.get('/', (req, res) => res.render('index', {
files: []
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do something else?
app.get('/', (req, res) => res.render('index', { files: [] )}

can you do this here

if(files.length == 0){
if (files.length == 0) {
res.render('index', {
message: 'Error: No File Selected!'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants