Replace media in media library - orchardcms

Is there any way to replace a file in the media library in orchard 1.9.x through the administrative UI? I can go into the file base and replace the files, but I am hoping to find a way that content editors can go in and replace a file using the same URL without having to delete the current file first.

There is a recent pull request adressing the replace issue. You could download the changes recompile Orchard to get the replace functionality.
https://github.com/OrchardCMS/Orchard/pull/7160

Related

Kentico Media Library search feature not searching sub folders of selected folder

Is there any way for Kentico Media Library application to search the sub folders of selected folder?
Files copied from FTP need to be "imported" into Kentico. If they were separated by folders/sub folders, you have to go to every single folder and "import" that folder's files.
I should not have to use Kentico API to do this simple task.
I am afraid but the search is looking into the current folder only. You can send a request to productmanagement#kentico.com as a feature request.
For the import - I see your point but there could be also the opposite need - what if someone wants to import only certain files from certain folder(s). It is the same as if you would upload the files through the UI - you need to do it per folder. But I hear what you are saying maybe there could be some setting for this. Again, you can send the feature request directly to the product managers.

Select file destination CrossFilePicker.Current.SaveFile(fileData) Xamarin Forms

I'm using Xamarin.Dialog.Plugin.FilePicker to pick a text file, and it works for me, but when I want to save a text file using CrossFilePicker.Current.SaveFile(fileData), a file destination picker is not openning.
Any sugestion to save a file on a destination from my choose using Xamarin Forms?
I think the SaveFile() is not doing what you expect. When you look e.g. at the Android implementation, it only saves the file to the external storage folder for the app. It's not meant to open a "save file" requester.
The real solution depends on your use case. If you want to open the file in another application, you have to implement a ContentProvider and open a content:// URL that your app handles, by using Intent.ActionView or similar. There currently is no Xamarin Plugin for doing this.

How to create Sharepoint ONET file

I was trying to find any tool that I can use to create ONET file from the existing SharePoint site. Unfortunately wasn't able to find. Does anybody know anything about that? There should be something besides of manual way to do that... Any MS solutions, third party tools?
As John Saunders is alluding, the simplest approach would be to let SharePoint create it for you. It's not exactly sitting in the site though; you can't just open the site in SharePoint Designer & grab it - but there is a way to get it:
Save the site as a Site Template (with or without content, doesn't matter - but without will be faster/smaller)
Download the STP/WSP from the Site Template (SP2007)/Solutions (SP2010/13) Gallery to your desktop
Change the file extension to .CAB
Use an archive tool (i.e. 7-zip) to unpack the CAB file
Within the unpacked CAB you will see a folder whose name will be the original name of your Site Template + "WebTemplate"
Within that folder will be a sub-folder whose name is just the original name of your Site Template
Within that folder is the ONet.xml file

Change file extension in SharePoint

I'm trying to find out how to change the file extension of a file in a document library in SharePoint, so that a newer version with a different extension can be uploaded without a separated copy being created (e.g. suppose I want to replace a .doc file with .zip).
Looks like you can write some codes to workaround but I feel there's gotta be a simpler way to do a simple task like this.
You could change the extension by opening the library in windows explorer.
Actions - Open In Windows Explorer
Then ensure that in your file view settings you don't have 'Hide Extensions for known file types' enabled.

Creating a link to a downloadable file in Orchard CMS

I've spent several hours trying to figure this out; hopefully, it's an easy solution and the difficulty is simply because I'm brand new to Orchard CMS and no where near an expert web developer...
I've created a Products Download page and need to insert hyperlinks to files that exist on the file system.
the path to the file (on disk) is : c:\Orchard CMS\Downloads\ProductOne\File1.zip
in the page editor, I insert a hyperlink reference with the following URL: /Downloads/ProductOne/File1.zip
When I hover over the hyperlink, it looks correct: http://localhost:12345/Downloads/ProductOne/File1.zip
However, when I click the link, I receive the following exception:
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Any help would be extremely appreciated!
If you don't want to play with source code and web.config files you should use Orchard Media feature. It allows you to upload files into Orchard filesystem and manage those. Links to files uploaded this way look like http://www.myorchardsite.com/Media/[Media folder path]/YourFile.zip
If you are not an experienced developer, I'd strongly advise you to take this approach. The only drawback is that you'd have to reupload those files into Orchard. But this is not as bad as it looks - you can zip them and upload as a single file (Orchard will take care of unpacking the archive if you check the checkbox below upload field).
You need a web.config file that allows the files to be served. You can use one from one of the content directories that can be found in modules or themes.

Resources