Thu, 08 Apr 2021 08:23:11 GMT
Join the conversation at slack.cordova.io
Thu, 08 Apr 2021 00:43:18 GMT
@brianmingus says
https://theory.ninja :ninja: https://boxology.io 🥊 https://diagramology.com ✡️ https://cloudmoji.com ☁️
Wed, 07 Apr 2021 21:02:02 GMT
@rodri.sanchez1998 says
Hi guys, the guy of Cboard project its back. At final i decided to use Electron platform, instead windows. Thank you for that. Now, i have another question. I have one repository https://github.com/cboard-org/ccboard where explain how to setup cordova-android. I want to extend that and add cordova-electron. I made some modifications in my platform/electron/platform_www/cdv-electron-settings (a folder which doesnt exists instead you make cordova add platform electron). The git user will decide which platform he wants to build. How can i attach the cdv-electron-setting when the user add the platform? I would explain that in readme but i think its a wrong way to do that. Im a begginer developer, if somebody can help me i will apreciate that.
Wed, 07 Apr 2021 14:29:59 GMT
@irfan.67670 says
Hi everyone, i am stuck on a problem on my ios build for cordova app
Wed, 07 Apr 2021 14:30:53 GMT
@irfan.67670 says
using cordova-plugin-chooser to show file dialog for uploading a file, and newer ios version always show empty file list, whenever i click on my iphone
Wed, 07 Apr 2021 14:54:40 GMT
@xavier.serra says
Dear @irfan.67670. You can use a regular <input type=‘file’> and will do the same as well
Wed, 07 Apr 2021 15:04:21 GMT
@irfan.67670 says
@xavier.serra i have to apply certain restrictions on file selection that i cannot do with regular file upload input
Wed, 07 Apr 2021 15:04:49 GMT
@xavier.serra says
Ok
Wed, 07 Apr 2021 15:04:59 GMT
@irfan.67670 says
using chooser i can reject the file after validation, the input box wont allow me to do that
Wed, 07 Apr 2021 15:14:58 GMT
@norman137 says
The
accept
parameter doesn't work...? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#htmlattrdefaccept
Wed, 07 Apr 2021 16:59:03 GMT
@irfan.67670 says
it works, but thats not the only contraint.. cant check file size etc with input only
Wed, 07 Apr 2021 17:15:58 GMT
@norman137 says
You should be able to.... when a user selects a file, you'll get a
File
instance, which should contain properties likesize
, which is the size of the chosen file in bytes. You can even read the file via theFileReader
as text or a blob and do further validations on the file format.
Wed, 07 Apr 2021 17:16:41 GMT
@norman137 says
Wed, 07 Apr 2021 17:18:06 GMT
@norman137 says
the file selector can also allow for multiple selection, in which case you'll get a
FileList
instance, which is essentially an read only array ofFile
instances.
Thu, 08 Apr 2021 04:22:40 GMT
@irfan.67670 says
Hmm ok let me take a look and see if i can use it