Using fileImporter to import cloud folders - swiftui

I'm using fileImporter to let the user select a folder:
.fileImporter(
isPresented: viewStore.binding(\.$fileImporterPresented),
allowedContentTypes: [.folder],
allowsMultipleSelection: false
) { resources in
// Do something
}
On macOS 13 (SwiftUI, not Catalyst) everything works as expected.
On iOS 16.1 it shows an open action for a folder but I cannot access Dropbox.
When I add additional allowedContentTypes like .directory, or .volume then Dropbox is no longer greyed out but it is also no longer possible to select a folder:
Selecting a folder seems to only work when the only allowedContentType is .folder.
How do I configure fileImporter to select a folder on an iOS external cloud storage provider?

The problem seems to be with Dropbox not implementing NSExtensionFileProviderSupportsPickingFolders. That's why it's greyed out in the fileImporter but also in the UIDocumentPickerViewController.
More information: https://stackoverflow.com/a/71379422/225833

Related

SwiftUI .fileImporter on MacOS Catalyst

Goal: import images using SwiftUI .fileImporter modifier, on MacOS Catalyst.
Xcode Version 12.4 (12D4e)
MacOS 11.2.3 (20D91)
Problem: When I lick to import an image, I get the crash bellow:
ERROR: Unable to display open panel: your app is missing the User Selected File Read app sandbox entitlement. Please ensure that your app's target capabilities include the proper entitlements.
Any help is much appreciated! : )
<UIDocumentPickerViewController: 0x7faf38ee9d20> from detached view controller <TtGC7SwiftUI19UIHostingControllerVVS_22_VariadicView_Children7Element: 0x7faf38e9f8e0> is discouraged.
2021-04-13 11:18:03.882067+0200 tStudio[12670:69301] [OpenSavePanels] ERROR: Unable to display open panel: your app is missing the User Selected File Read app sandbox entitlement. Please ensure that your app's target capabilities include the proper entitlements.
Fixed with this. Just go to your target, and check file access as bellow

How to opencart 2.3.0.2 version into free modules add?

How to open cart 2.3.0.2 version into free modules add?
I try to free model
go to admin -> design -> layout -> add(module)
please send processing step by step explain
Unzip the file and ftp it to your cart (or copy it to your cart directory, if you are running it locally). The module will be laid out in a way that matches your cart, so copy the catalog folder from the module to the catalog folder in your cart, admin folder to admin folder, etc. Then you will have to go to admin->extensions->extensions, select modules and install your module.
admin pane > Extensions > Extension installer
Click on the upload button > Select the .zip file and click “OK”
After clicking “OK” your extension will be uploaded and a “success” message should appear. > Now your module should be visible in Extensions
Modules. After locating it in the Module list just click the install button (“ + ” sign) >
The final step of the installation process is to apply the changes we have just made. In order to do so, go to Extensions > Modifications and click the Refresh sign at the upper right corner of the page.

MismatchSenderId on Django - Firebase Cloud Messaging

I would like to implement Django-fcm when I try to test it, I was able to install Django FCM everything went successfully.
Here is the error that appears MismatchSenderId.
Here are some illustration screenshots:
Any help is appreciated.
I had the same error, I debugged and found out that in the Django project I was not using the right json file. To make sure, you are not adding the wrong json file,
go to the
firebase console > select your app -> go to settings ->select service
accounts tab -> select python ->
download the server key json file and add the code mentioned to the settings file.

WebStorm Deployment menu options greyed out?

I have decided to use WebStorm it seems good however most of the time if I go to Tools - Deployment the upper menu options are greyed out? I can configure and I can go to Options but I cannot download from the server? I can open the remote host just fine and scroll through documents that way but from what I understand WebStorm loses a lot of functionality if you develop this way.
I have no Git and am just working by myself so this workflow is fine for me right now.....if I can download from the server!
In my Deployment Menu from Tools all of the tests work and I can autofind my folder and all that. Whats going on?
Here is the Mappings section:
Your Local path has to be part of your current project (root or a subfolder).
The deployment path a folder of your server where it should be stored - if it should be stored on the root it is just a slash: '/'.
If your connection is successful you should be able to select a folder with the dialog (on the right).
Make also sure your server is marked as 'default' which is your default connection for this project - based on that link.
The projects has been indexed by WebStorm so you can easily refactor and other fancy stuff.
Every project has a root folder with a config folder .idea.
For those that are convinced their mappings are set up the right way, here's one key thing to check. It seems like their SFTP usage does not follow symbolic links (on the remote) correctly. And you can see that if you go to the Mappings tab and click on the "..." for the Deployment path - when it shows the list, symlinked dirs do not show up. By avoiding symlinks in the path, I was able to get the upper part of the Tools/Deployment menu to be active again (non-grey)
I was using PyCharm Pro 2017.3

Sitecore Upload Media from Page editor doesn't work

I am a new bee to Sitecore and here comes my first challenge at work.
In one of the website component, I want to add an image.
For this in content editor:
I'll click on browse.
Switch to folder view.
Navigate down to the folder you want to save into.
Click upload media on top left.
Click ‘Browse for media files’ and navigate to the image on the local drive and select it.
Enter alt-text and click upload media.
In Chrome the green bar for uploading never seems to finish. On IE one of the green bars changes to ‘Upload complete’. At this point there is no call to action to add the image to the module, select the module – you just don’t know what to do next.
Eventually you have to click ‘Back’ or ‘close’. Then when you go to find the image it is not in the folder you selected. It is in Upload folder. We cannot keep all of our files in ‘Upload’. We need to be able to upload into a chosen folder.
I am using Sitecore 7.2.
This works properly in a base site in Sitecore 7.2, but is not working in my website.
Is there any setting I need to change to make this work properly?
I know we can add media files into Media library directly and can use it. But we want to do it the using the above mentioned steps/ or using Page editor. The main problem is, this doesn't work while adding image from Page editor.
Hope I can get some solution!
many thanks!
I looked at the Release Notes for Sitecore 7.2 and found that there were several bugs related to Media Uploads that were resolved in Update 2 (140526), including some that relate to choosing the destination of uploaded media. From your description of the issue and the bugs that were fixed in Update 2, it sounds like you may only need to update to Revision 140526.
To find out what revision of Sitecore you are using, go to the Sitecore Desktop -> Start Menu -> Control Panel -> Administration -> Show About Sitecore Information. As you will see in the screenshot, below, there is a parenthesized revision number at the top. If that number is not 140526 then you should try to apply Update 2 to your instance.
Note that this screenshot is of an instance that is not running on Sitecore 7.2 Update 2, but is instead running on the initial release (140228).