Issue when creating folders / files #50
Replies: 6 comments 5 replies
-
thanks, I'm trying to get the library better and better |
Beta Was this translation helpful? Give feedback.
-
Well done for what you have done so far. I would be willing to share what I am doing with you if that helps you. |
Beta Was this translation helpful? Give feedback.
-
I have tested creating a new folder but I can confirm it is refreshed as expected. I'm not sure whats going on in your setup yet. transformRequest is helpful when you need some other parameters for the backend, with the request object itself its possible to add Usually the paths and filenames are saved to the databases, instead of ids. I'm not sure how can we improve this. |
Beta Was this translation helpful? Give feedback.
-
The existing live demo is using readonly storage, you should remove "new ReadOnlyFilesystemAdapter" part to test it locally. You can inspect the webpage and can see the returned data. Are you sure the items are created/updated and not displaying at the front ? Or maybe there is a permission issue that prevents it ? you can check the returned data just like shown below. I want to add, since you are using mostly API, the current version of the api has some issues with stateless authorization. We have a topic here #45 for this. On the other hand you can post some code examples and screenshots, maybe I can figure out what is wrong. |
Beta Was this translation helpful? Give feedback.
-
Hey, The changes I did was been a bit rushed and did not spend time to quality check them or adding all condition checks as they are mainly proof of concept.
I changed 'basename' with 'filename' in Explorer.vue component, but of course feel free to discard the change. p.s. https://github.com/alessandro-de-marco/vuefinder/tree/feature/open-tool-to-external-input Alessandro |
Beta Was this translation helpful? Give feedback.
-
thanks, I haven't looked at all the code, but I like the general idea.,
I'm not saying they should be like this. Just brainstorming.. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was looking at a Vue component for File Explorer and I bumped into your product and I really liked it.
I managed to include it into my Vue project, but I am facing an issue when I create a folder. Once the folder is created, the main content window doesn't seem to refresh, forcing me to manually refresh it.
I looked at the code and I saw that inside Vuefinder.vue you have a method called "updateItems" which I believe it suppose to refresh the content, but it doesn't.
I experimented a little bit with the code and If I add the following line inside the ModalNewFolder.vue component, when the folder is created, the content is refreshed, but not sure if there is a better way to do it that does not involve adding it in every dialog
app.emitter.emit('vf-fetch',{params:{q: 'index', adapter: app.adapter}});
Please do let me know
Beta Was this translation helpful? Give feedback.
All reactions