Jump to content

Featured Replies

Posted
comment_197042

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

comment_197047

Так у тебя 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' ) ) );

 

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.