simov / express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
1.18k stars 223 forks source link

File Upload #56

Open frnco opened 10 years ago

frnco commented 10 years ago

How do we set the path for the uploaded file? If there's a way, this should be documented, if there isn't, I suggest we flag this as a feature, I'm gonna need it and I have no problems building it into express-admin and making the pull request. :D

simov commented 10 years ago

Take a look at the

"app": {
    "upload": "/upload/folder"
}

here Is this what you looking for

frnco commented 10 years ago

Are there any ways to use parameters to change the upload path for different areas?

If not, do you thing of a good way to approach this? Such as defining a complementary upload path directly on the file control...?

simov commented 10 years ago

Probably specifying additional settings key is a good option, I'll think about it, currently it's not possible.