Upload files from computer and save in media section
Hi,
I have a document type with a property called Upload type.
It is possible when someone upload a photo through that type, to save automatically in Media section (I see that save in media folder from root of application but I want to be visible/registered also in media section) ?
maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0/1.1 and "2097151" (2 GB) for .NET Framework 2.0.
executionTimeout - Attribute indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by the application. The executionTimeout value should always be longer than the amount of time that the upload process can take.
But, if I put Media Picker property, add content and then if I want to upload a mp4 file from my PC then the validation error is thrown that I have to upload only jpg, jpeg, gif, tiff, etc. but not mp4 file.
If I go to Media section, upload there the mp4 file and go back to Content then I can only pick that uploaded mp4 file.
I wish to upload from PC the mp4 file directly from Media Picker property. Does exists some settings for it ?
Upload files from computer and save in media section
Hi,
I have a document type with a property called
Upload
type.It is possible when someone upload a photo through that type, to save automatically in
Media
section (I see that save inmedia folder
from root of application but I want to be visible/registered also in media section) ?If so, what steps should I follow to do that ?
Hi Mihail,
just use a MediaPicker instead of the Upload control if you are just uploading images. You will be able to save your images in the Media section.
If I wish to upload mp4 files ?
Mihali
Yes, you can use this for media files and it's default size is 4 MB.
This can be increase by web.config
maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0/1.1 and "2097151" (2 GB) for .NET Framework 2.0.
executionTimeout - Attribute indicates the maximum number of seconds that a request is allowed to execute before being automatically shut down by the application. The executionTimeout value should always be longer than the amount of time that the upload process can take.
Manish
I understood.
But, if I put
Media Picker
property, add content and then if I want to upload amp4
file from my PC then the validation error is thrown that I have to upload onlyjpg, jpeg, gif, tiff
, etc. but not mp4 file.If I go to
Media
section, upload there the mp4 file and go back toContent
then I can only pick that uploaded mp4 file.I wish to upload from PC the mp4 file directly from
Media Picker
property. Does exists some settings for it ?Mihali
You can try this package for this
https://our.umbraco.org/projects/website-utilities/desktop-media-uploader/
Manish
No, it is desktop application. I asked for Media Picker or Umbraco web solution.
Sorry, I did not read it
Manish
is working on a reply...