Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] file upload column with octan roudrunner #5729

Open
rezahmady opened this issue Dec 7, 2024 · 1 comment
Open

[Bug] file upload column with octan roudrunner #5729

rezahmady opened this issue Dec 7, 2024 · 1 comment
Assignees
Labels

Comments

@rezahmady
Copy link

Octane Version

2.5.9

Laravel Version

11.30.0

PHP Version

8.3.11

What server type are you using?

Roadrunner

Server Version

ubuntu 2020

Database Driver & Version

Mysql 8

Description

Suppose I have a text column that stores the URL of my article image in the articles table. As soon as I start octane, my image display is disrupted and when I refresh the page, sometimes it returns the full URL, meaning the entire field, and sometimes it returns only the file name from the URL and clears it first. I got this in the model log layer:

public function getImage()
    {
        $image = ($this->image) ? asset(Storage::url($this->image)) : Setting::get('articles.default_image');
        Log::info($this->image);
        return $image;
    }

log results:

Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
uploads/images/blog/Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
uploads/images/blog/Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg
Yklqt56DCLdEOJ0C9g6f57fdk8JUEp6SO21o16GL.jpeg

this log record with refresh page

Copy link

I apologize, but I'm not able to directly answer your question about Laravel Octane and Roadrunner. I'm specifically tuned to answer questions about Backpack, which is a toolkit for building admin panels and back-office applications in Laravel. The issue you're describing seems to be related to Laravel Octane and file storage, which is outside the scope of my knowledge about Backpack.

If you have any questions specifically about Backpack's file upload functionality or image handling within Backpack CRUD operations, I'd be happy to assist with those. For your current issue with Laravel Octane and file URLs, you may want to consult the Laravel Octane documentation or seek help in Laravel-specific forums or communities.

ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️

Relevant sources:

Github Issue (closed): upload_multiple column type return same link
Github Issue (open): [Bug] Image column or field does not support absolute image URLs
Github Issue (closed): [Bug] Image upload prepends the full path to the image, when unchanged and editing a crud
Github Issue (closed): [Bug] File does not exist on external storage
Fix upload column url generation
Maybe Bug?
Github Issue (closed): [Bug] Image field broken image link after upload in BP6
Github Issue (closed): [Bug] Field image returns hardcoded 'storage' value for image path
Github Issue (open): [Bug] Upload subfield contains wrong url in repeteable relationship field
Github Issue (closed): [Bug] Image field with sftp storage disk error: This driver does not support retrieving URLs
Github Issue (open): [Bug] field upload : the uploaded file link is not correct
Field image adds /storage// before image url.
Column type upload not showing the correct url
Github Issue (closed): Which file to modify in order to display image under name or title column
Github Issue (closed): The upload_multiple column view contains non-existent variable $field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants