Uploaded images not working

none of the images I upload work, when i add them through the chat it says its worked but the images just show the not loaded icon is there away of uploading images
9 Replies
zjhmotors
zjhmotorsOP3w ago
https://automanager--development.gadget.app/ ive tried creating an assets manager, but still wont work
Smelvin
Smelvin3w ago
Hi ZJH Motors, Could you elaborate on what a working image is? and to what chat?
zjhmotors
zjhmotorsOP3w ago
The part called chat where you tell the ai what to do I upload the image in the chat and tell it what to do So I told it to replace the logo with my own image The ai says that it has done it, but when the page loads the image doesn't load When I ask the ai where the image is it says it can't store it and I need to upload the image using the built in file manager, but there is no way of doing this I can't find any of my uploaded images in the files
Smelvin
Smelvin3w ago
If you pull your project locally with GGT (top left cloud icon, copy the command in your terminal) you can move files to your Gadget app folder. When you asked the assistant to change an icon did you specify where and what the image was, then what icon and page to replace with the new icon?
zjhmotors
zjhmotorsOP3w ago
Yes I told it specifically what to do I tried it with the icon and with a banner image and neither worked, even though it said it had completed it successfully. When I asked it why it wasn't working, it said that it doesn't know and said I need to change it to a colour. Also I don't know how to pull it locally Any help
Smelvin
Smelvin3w ago
You can pull your project locally by clicking the cloudy icon in the top left and following the instructions there, I have attached an image. then you can add the image to your project and it will be able to be referenced.
No description
Chocci_Milk
Chocci_Milk3w ago
Hello zjhmotors. I would like to recommend that you take a look through our documentation to see whats available on the platform. We're an extremely small team and can't guide you through every step of your development process.
zjhmotors
zjhmotorsOP3w ago
I understand that, but surely it should just be a simple request to add an image
Chocci_Milk
Chocci_Milk3w ago
There are a few things that can lead to the assistant's confusion: - Large amount of context being passed to the assistant because of a long chat. We recommend making new chats after a change is completed successfully. This allows the AI to start fresh and focus on the current context - The prior addition of a model just for your "business assets". This model has a file field which is represented as JSON when pulled from the database. AI is possibly not getting context as to the shape of the object returned in the network request, so its making guesses and causing the broken image icon to appear - You might not have clearly (in prompt terms) defined what you needed it to do. An example of a good prompt would contain the following in this case; stating that you have added an image file to the frontend code, told it to import the image, and finally display the image as the icon. This seems to be a compounding set of circumstances that would and did get worse over time. The best way for you to get out of this situation would be to start a new conversation (this is important), ask it to delete the businessAssets (I think thats the name) model and calls to fetch data from that model, create a new conversation again, and finally tell it to use (and name the file and path if possible) the icon as your application logo

Did you find this page helpful?