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

filesize(): stat failed #111

Open
deevus opened this issue Aug 7, 2024 · 2 comments
Open

filesize(): stat failed #111

deevus opened this issue Aug 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@deevus
Copy link

deevus commented Aug 7, 2024

Steps to reproduce the problem

I am using an S3-compatible API for storage. When trying to post to Twitter, I get this error:

[ "filesize(): stat failed for https://s3.us-east-005.backblazeb2.com/doublewordlabs-mixpost-storage/08-2024/jZCuVBRD72xETfX87c50JTc3TljF45WaQBajeHHS.mp4" ]

Link to the file

According to the PHP docs, under the hood this uses the HTTP wrapper, which does not support stat()

Expected behaviour

I can post a video to Twitter

Actual behaviour

I cannot post a video to Twitter

Detailed description

No response

Specifications

Mixpost Lite 1.71.0

@deevus deevus added the bug Something isn't working label Aug 7, 2024
@deevus
Copy link
Author

deevus commented Aug 8, 2024

It looks like the calling function actually passes the total_bytes parameter, so it may be fixed by not making the filesize() call if total_bytes was already passed in through $parameters

@MagoEremita
Copy link

Modifique o código para verificar se o parâmetro total_bytes está presente antes de chamar filesize(). Se total_bytes já estiver definido, pule a chamada para filesize().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants