Skip to content

file_get_contents is not working #518

@siarheipashkevich

Description

@siarheipashkevich
  • Sail Version: 1.16.3
  • Laravel Version: 9.43.0
  • PHP Version: 8.1.13
  • Host operating system: Linux Ubuntu 22.04

Description:

I have public disk and trying to convert image to base64.

If I open image url in the browser it's working correctly, but if I use file_get_contents for getting base64 string it's failed:
image

My code:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions