Posted 22 октября, 20231 yr 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 Link to comment https://ipbmafia.ru/topic/26097-code-problem-after-upload/ Share on other sites Больше вариантов
22 октября, 20231 yr comment_197043 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 Больше вариантов
22 октября, 20231 yr Author comment_197046 @Exception Link to comment https://ipbmafia.ru/topic/26097-code-problem-after-upload/?&do=findComment&comment=197046 Share on other sites Больше вариантов
22 октября, 20231 yr 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' ) ) ); Link to comment https://ipbmafia.ru/topic/26097-code-problem-after-upload/?&do=findComment&comment=197047 Share on other sites Больше вариантов
22 октября, 20231 yr Author comment_197049 thank you Link to comment https://ipbmafia.ru/topic/26097-code-problem-after-upload/?&do=findComment&comment=197049 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.