Jump to content

Featured Replies

I used this code to upload the image in the plugin

$form->add( new \IPS\Helpers\Form\Upload( '************', NULL, TRUE, array( 'storageExtension' => 'app_Key' ) ) ); 


But the problem is that when I enter the editing section of the plugin, the photo is not displayed
Thank you for your guidance

@Desti@by_ix

Link to comment
https://ipbmafia.ru/topic/26097-code-problem-after-upload/
Share on other sites

are you familiar with programming?

Link to comment
https://ipbmafia.ru/topic/26097-code-problem-after-upload/?&do=findComment&comment=197043
Share on other sites

Так у тебя NULL, логично, чтобы отображалось нужное загрузить изображение

$form->add( new \IPS\Helpers\Form\Upload( 'settingName', \IPS\Settings::i()->settingName ? \IPS\File::get( 'app_Key', \IPS\Settings::i()->settingName ) : NULL, TRUE, array( 'storageExtension' => 'app_Key' ) ) );

 

Link to comment
https://ipbmafia.ru/topic/26097-code-problem-after-upload/?&do=findComment&comment=197047
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.