Questions tagged [fileprovider-extension]
44 questions
1
vote
1 answer
How to rollback the change in modifyItem in macOS FileProvider Extension?
Let's say user renames a file/folder in FileProvider extension. modifyItem callback is invoked where we issue a rename request to the server. Server responds with an error (ie user doesn't have permission to rename the relevant file/folder). We…

mixtly87
- 1,675
- 15
- 32
1
vote
1 answer
How to make signalEnumerator(for: identifier) call the relevant enumerateChanges method
In macOS FileProvider extension, when I invoke:
manager.signalEnumerator(for: identifier) { error in
print("Signal completed with error: \(error)")
}
where identifier is identifier of the relevant folder which contains remote changes, system…

mixtly87
- 1,675
- 15
- 32
1
vote
0 answers
File Provider API on macOS: How to initialize?
I am trying to build a macOS application from scratch that makes use of the new File Provider API shipped with macOS Big Sur. Luckily, the latest version of Xcode, version 12.5 beta 3, comes with a File Provider Extension that I can easily add to my…

André Gasser
- 1,065
- 2
- 14
- 34
1
vote
0 answers
File Provider Extension for macOS is missing in Xcode 11
Update:
I found that File Provider Extension API is removed from Catalina features page. Is that mean this feature won't be available on macOS Catalina?
I upgraded Xcode to Xcode 11 GM2(11A420a) on macOS Catalina beta.8. Then I tried to create an…

Jian
- 3,118
- 2
- 22
- 36
1
vote
2 answers
Prohibit exporting or sharing documents in UIDocumentBrowserViewController
Is there any way to prohibit exporting files in my UIDocumentBrowserViewController-based application that also provides a FileProvider?
The user should only be allowed to view and edit files in the app.
The user should be able to move files around…

heyfrank
- 5,291
- 3
- 32
- 46
1
vote
1 answer
NSFileProviderItem download badge always visible
I'm developing an NSFileProvider. In the Files app, in the folder view, the download badge appears next to every file, independently by the value returned by the isDownloaded function in the corresponding file provider item, as shown in the figure…

FrizzTheSnail
- 1,048
- 11
- 21
1
vote
1 answer
How to host Angular application with Kestrel
I am trying to deploy an Angular 7 application with .NET Core using Kestrel using the FileProvider extension.
I have created the angular app , i have ng build it and i copied the files inside dist .NET Porject.
Startup
public void…

Bercovici Adrian
- 8,794
- 17
- 73
- 152
1
vote
1 answer
FileProviderExtension workingSet enumerator didn't call
I have a problem with working set enumerator (Recents tab) in Files app. I implement a working enumerator for Folders, it runs enumerateItems(for observer method when I move to the folder in UI and everything works fine.
And I have a different…

Valeriy
- 785
- 2
- 10
- 28
1
vote
0 answers
In File Provider extension for iOS 11, I want to enable my app's passcode for user to access the files
I have enabled passcode option in my app but when I enable it the files app doesn't ask me the passcode when I access the documents through Files app.
I have gone through all of the documents available for the File provider extension but reached…

Anil shukla
- 277
- 3
- 10
0
votes
1 answer
How to add Actions to MACOS FileProvider API and use them in the Code?
I'm working on a macOS project that involves the FileProvider API. I would like to add custom actions to the items provided by the FileProvider and use them in my code. How can I achieve this?
Specifically, I want to know:
How can I add actions to…

Sri
- 63
- 2
- 10
0
votes
0 answers
Duplicate items being created during reimport in NSFileProviderEnumerator
I am working on an NSFileProviderEnumerator in my iOS application to enumerate the contents of a directory. However, I'm experiencing an issue where duplicate items are being created during the reimport process.
Here is my enumeration code…

Sri
- 63
- 2
- 10
0
votes
0 answers
Upload file in File Provider Extension iOS
files with more than 20 MB size are not uploading in extension(FileProviderExtension). its throwing memory limit exception.
using alamofire to upload file.

Sachin Hunasnale
- 1
- 2
0
votes
1 answer
Unable to resolve service for type 'Microsoft.Extensions.FileProviders.IFileProvider' while attempting to activate my controller
I have this in my controller
using Microsoft.Extensions.FileProviders;
[ApiController]
[Route("api/[controller]")]
public class PlanningController: ControllerBase
{
private readonly IFileProvider fileProvider;
public…

kintela
- 1,283
- 1
- 14
- 32
0
votes
1 answer
How to compare sourceItem.userInfo and domainUserInfo in FileProvider extension ActivationRule?
I'm creating a Rename-forbidden NSFileProviderUserInteractions rule.
My goal: if sourceItem owner is not currently logged-in user, Rename should be forbidden.
User-interaction rule in Info.plist file:
ActivationRule
…

mixtly87
- 1,675
- 15
- 32
0
votes
0 answers
macOS FileProviderExtension prevent file creation via NSFileProviderUserInteractions
My FileProviderExtension should allow creating folders in the root level, but not files. Is there a way to achieve that?
I tried creating a NSFileProviderUserInteractions entry like
ActivationRule
(action == "Create" OR…

mixtly87
- 1,675
- 15
- 32