Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anonymouse703's avatar

Disable create button and create & create another not disabled.

We noticed this issue when experiencing a slow internet connection. Our QA was uploading a video with limited bandwidth, and the progress bar showed 9%, not the full 100%. However, the Create and Create and Create Another buttons became enabled after several minutes of uploading, even though the progress bar never reached 100%.

 Forms\Components\FileUpload::make('new_advertisement')
                                    ->label('New Video')
                                    ->maxSize(80000)
                                    ->acceptedFileTypes([
                                        'video/mp4',
                                        'video/mpeg'
                                    ])
                                    ->storeFiles(false)
                                    ->moveFiles(),
0 likes
3 replies
Merklin's avatar
  1. Did you've been able to click the buttons again?
  2. Did you check the logs? It is possible that you have exceeded the php max_execution_time
anonymouse703's avatar

@Merklin

Did you've been able to click the buttons again? Answer: Yes, even if it's not completely uploaded (100%)

Did you check the logs? It is possible that you have exceeded the php max_execution_time Answer: Right now, can't check the log since the internet is normal and this error happened on staging not in the local. But I'll try to recheck then.

I also notice that when uploading small size video upon uploading the create button is disabled since it's processing but the create & create another button is clickable..

Merklin's avatar

@anonymouse703 If you don't need the Create & Create another button, there is a way to remove/hide it: either use ->createAnother(false) inside the action block or, if it is a resource page: protected static bool $canCreateAnother = false; as for the rest, I cannot tell the exact reason.

And by logs, I didn't mean only the Laravel log. The PHP log may have some answers if you are hitting max execution time problem while it may not be present in the Laravel log.

Please or to participate in this conversation.