Comments (5)
Please share more information. Your description isn't very helpful.
from adminjs.
I am uploading multiple files to my admin js dashboard using upload library of admin js, now It gets uploaded successfully and file path gets stored in databse as an array, but when I try to edit that page, these uploaded files does not shows up.
`import mongoose, { trusted } from "mongoose";
const propertySchema = new mongoose.Schema({
colony_id: {
type: mongoose.Schema.Types.ObjectId,
ref: "Colony",
},
number: {
type: Number,
required: true,
},
name: {
type: String,
required: true,
},
images: [String],
size: {
type: String,
required: true,
},
location: {
type: String,
required: true,
},
pincode: {
type: mongoose.Schema.Types.ObjectId,
ref: "MasterPincode",
},
building: {
type: mongoose.Schema.Types.ObjectId,
ref: "Building",
},
isavailable: {
type: Boolean,
required: true,
default: true,
},
type: {
type: String,
required: true,
enum: ["Plot", "Flat", "Villa"],
},
description: String,
Bhk: {
type: Number,
// required: true,
},
flats: {
type: String,
description: "No of Flats Available in Building (if type is flat)",
// min: 0,
// required: true,
},
price: {
type: Number,
required: true,
},
created_at: {
type: Date,
default: Date.now(),
},
updated_at: {
type: Date,
default: Date.now(),
},
});
export default mongoose.model("Property", propertySchema);`
This is the model I am using and images is the key in which I am storing the paths of the files. FIles are getting stored locally on system
from adminjs.
@dziraf can you help me with this problem?
from adminjs.
Related Issues (20)
- [Bug]: SyntaxError: Named export 'ComponentLoader' not found. The requested module 'adminjs' is a CommonJS module HOT 2
- How to migrate from adminbro to adminjs HOT 2
- [Bug]: Unable to query mongoDB record that contains special characters like "/" in the _id
- [Bug]: Calendar strange rendering
- [Bug]: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `Edit`. HOT 1
- [Bug]: @adminjs/relations many-to-many with Prisma HOT 2
- [Bug]: Filter UI issue HOT 1
- [Feature]: @adminjs/relations remove "delete record" option HOT 2
- [Bug]: AdminJs/Relations One to Many TypeError: Cannot read properties of null (reading 'type') HOT 5
- [Bug]: AdminJs/relations and Prisma Many to Many with undefined references causes `Argument in: Invalid value provided` HOT 1
- [Feature]: 2FA on login? HOT 2
- [Bug]: inputs in Modals lose focus every key press HOT 5
- [Bug]: Bulk action doesn't trigger a list refresh HOT 1
- [Bug]: I have 2 dropdowns, is there any way to filter out data in 2nd dropdown on the basis of value selected in 1st dropdown in Admin JS library? HOT 10
- [Bug]: Image in Rich Text Editor not showing when I try re-editing
- [Bug]: adminjs/cli `unable to resolve dependency tree` project init falied for nestjs with typeorm and postgres HOT 2
- [Bug]: Not able to build after adding admin-bro HOT 1
- [Feature]: how i can redirect to url from actions handler HOT 1
- [Bug]: Errors during transpile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminjs.