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.
I am encountering an issue where, despite successfully uploading multiple image properties, I am unable to view the previously uploaded images in edit mode.
While they are visible on the show page, they do not appear during the editing process.
from adminjs.
@dziraf
im using S3 Provider
I think that the bug is with the strip-payload-factory in the follwing code:
filteredPayload = flat.filterOutParams(filteredPayload, properties.filePath)
becose that in the UpladEditComponent we have the follwing condiation: {custom.multiple && key && key.length && path ?
when path is
const path = flat.get(params, custom.filePathProperty)
from adminjs.
Related Issues (20)
- Leaflet Maps not properly rendering HOT 2
- process.env.ENV_VARIABLE is undefined HOT 2
- Map leaflet property position cannot be changed HOT 1
- Leaflet shows error when creating a new record HOT 3
- @adminjs/relations rendering error: Error: Component "RelationsShowPropertyComponent" has not been bundled HOT 1
- [Bug]: Admim js Dashboard takes very long time to load the page. HOT 1
- [Feature]: Overriding the create new resource actions button HOT 1
- [Feature]: [@adminjs/relations] Add custom properties/columns.
- [Feature]: function for guard instead of only string
- How can I query a record or a list of records with exact matching property values?
- [Bug]: Custom Component is taking too long to load and resulting in heap memory out of usage. HOT 2
- [Bug]: [@admins/relations] custom action icon not shown
- [Bug]: Nav bar logo does not change in dark theme.
- How do I call aws-sdk from client? HOT 1
- Unable to access data sent from frontend to custom endpoint HOT 9
- [Bug]: Relations: Bugs in deleting many-to-many item HOT 8
- [Bug]: Use import specifier 'with' instead of 'assert'
- [Bug]: @adminjs/relations default sorting not working in oneToManyHandler
- [Bug]: Leaflet Maps not rendering properly in production
- [Bug]: recharts module not found HOT 2
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.