Loving the media picker easy to install and use. I am new to Umbraco and I have
a few questions I am hoping someone can answer.
1) I can upload and select images and I can select videos I have uploaded
using the Amazon s3 website. But I can't seem to upload videos using the media
picker, I get the following error. "The connection was reset. The
connection to the server was reset while the page was loading." The error
is instant as soon as I select save. Are there only certain formats which you
can upload using the picker or can you upload all media? It’s a MP4 file I am
trying to upload
2) I love the ability to add folders to Amazon via the picker, a great
addition. If I add a folder, to a folder which already contains images and
videos, I now can't see the images/videos that were already in the folder,
using the picker. I can only see the newly created folder and the image I
uploaded into the new folder. Everyone has read permissions to all of the
images, in AmazonS3
Example: I have a folder called Fruit containing Apple and Orange image. I
create a new folder called Grapes and I upload an image of green grapes using
the picker. Next time look in the fruit folder I can only see the Grapes folder
and the green grapes image. But I can't see Apple and Orange in the picker.
3) The final problem I am having is accessing the content once I have chosen
it by the picker. I tried to output the umbraco Item <umbraco:Item field="amazonVideo" runat="server"></umbraco:Item> The value seems to be empty, I am assume I will have
to use a macro and a XSLT to access the data correctly. Although should this
value be empty? Does anyone have an example of this using the media picker?
I have solved the first problem I was having, it was becasue I did not set the file limit in the web.config file. Setting the maxRequestLength has sorted the problem of uploading files to amazon.
I seemed to of found a work around for uploading files. When you
upload the file to a sub folder, you have to put the name of the folder in the
New Folder textbox. If you do not you can't select the file in the picker. The
file is correctly upload to Amazon, but you can't select it in the picker. Even
though all the files uploaded have the Everyone permission as read.
Glad you found the answer to some of your questions.
With regards to the folder/file issue I'm not sure I'm following the approach. But I can maybe try and explain how I tested the folder creation:
Lets say the startingpoint is an empty Bucket called MyBucket. From the Create-tab I first select a file in the upload control. In the first dropdown list I simply leave it set to Root as I'm starting with an empty Bucket. In the New Folder-textbox I enter MyFirstFolder and hit Save and then Select to save and close the dialog. Next time I open the Media Picker I can see my bucket and I can expand it to see MyFirstFolder. Again I go to the Create tab and select a file, select MyBucket, select MyFirstFolder and enter MySecondLevelFolder in the New Folder-textbox - this will result in a folder structure like this: MyBucket - MyFirstFolder -- UploadedFile1 -- MySecondLevelFolder --- UploadedFile2
Please let me know if you experience anything different then the above, as this is the intended result.
Btw. Permissions are automatically set to Public Read for both files and folders.
Thanks for the reply, it has been useful. I think the problem has been that my bucket already contained files and folders, it's these images I couldn't see.
When files are uploaded are they also stored witin umbraco database and then referenced by the package or do you get the files and structure direct from AmazonS3?
I decided to empty my test bucket and upload files and folders again, this worked fine when uploading new files. However the Parent Folder dropdown is still populated with the old folder structure. Where is this populated from?
The Parent Folder dropdown is now showing the correct files so it must have been cached, sorry about that.
I am still having an upload problem, when uploading to a folder which has been created by the picker before.Create new folders and uploading is working fine.
Using your structure above, I can upload files to MyFirstFolder, but the files always can't be seen in the picker. Example 1 allows me to upload files and they can be seen on the amazon site but not in the Picker, Example 2 to allows me to upload files and I can choose them in the picker.
Example 1:
Container = MyBucket
Parent Folder = MyFirstFolder
New Folder =
1. No the files are not stored in Umbraco - they are uploaded directly to Amazon.
2. As you found yourself the old files and folder that showed up is likely a caching issue.
3. I'm a bit surprised that you are still having problems uploading to a subfolder, as I'm sure I have tested it. But I can't rule out that I have missed a scenario, so I will do some more tests as soon as I have a chance. Please note one thing tho - when uploading a new file you won't be able to see it immidiately after uploading it (switching between the tabs), but you WILL be able to select it. Once you reopen the Media Picker you should see all the files and folders you have in your bucket(s).
4.XSLT should be pretty straight forward. $currentPage/fieldname as I recall - where fieldname is the alias of the S3 Provider property.
I'll get back to you once I have had a chance to do some further testing.
I just tested uploading to folders locally and it seems to be a caching issue - or at least the create-control isn't updated with new folders. I have sent an updated version to another Umbraco dev for testing.
Let me know if you also want to test it before I upload the fixed version to the project page.
Ultimate Media Picker Amazon S3 question
Hi
Loving the media picker easy to install and use. I am new to Umbraco and I have a few questions I am hoping someone can answer.
1) I can upload and select images and I can select videos I have uploaded using the Amazon s3 website. But I can't seem to upload videos using the media picker, I get the following error. "The connection was reset. The connection to the server was reset while the page was loading." The error is instant as soon as I select save. Are there only certain formats which you can upload using the picker or can you upload all media? It’s a MP4 file I am trying to upload
2) I love the ability to add folders to Amazon via the picker, a great addition. If I add a folder, to a folder which already contains images and videos, I now can't see the images/videos that were already in the folder, using the picker. I can only see the newly created folder and the image I uploaded into the new folder. Everyone has read permissions to all of the images, in AmazonS3
Example: I have a folder called Fruit containing Apple and Orange image. I create a new folder called Grapes and I upload an image of green grapes using the picker. Next time look in the fruit folder I can only see the Grapes folder and the green grapes image. But I can't see Apple and Orange in the picker.
3) The final problem I am having is accessing the content once I have chosen it by the picker. I tried to output the umbraco Item <umbraco:Item field="amazonVideo" runat="server"></umbraco:Item> The value seems to be empty, I am assume I will have to use a macro and a XSLT to access the data correctly. Although should this value be empty? Does anyone have an example of this using the media picker?
Thanks for any help in advance.
Cheers
Alistair
Hi
I have solved the first problem I was having, it was becasue I did not set the file limit in the web.config file. Setting the maxRequestLength has sorted the problem of uploading files to amazon.
<httpRuntime maxRequestLength="2097151" executionTimeout="360"/>
I am still having the problems of not been able to see previously uploaded files and also retrieving the data in umbraco
All of the files which have been upload, have the correct settings, the ACL is set to read for Everyone
Any ideas?
Cheers
Alistair
Hi
I seemed to of found a work around for uploading files. When you upload the file to a sub folder, you have to put the name of the folder in the New Folder textbox. If you do not you can't select the file in the picker. The file is correctly upload to Amazon, but you can't select it in the picker. Even though all the files uploaded have the Everyone permission as read.
Cheers
Alistair
Hi Alistair,
Glad you found the answer to some of your questions.
With regards to the folder/file issue I'm not sure I'm following the approach. But I can maybe try and explain how I tested the folder creation:
Lets say the startingpoint is an empty Bucket called MyBucket. From the Create-tab I first select a file in the upload control. In the first dropdown list I simply leave it set to Root as I'm starting with an empty Bucket. In the New Folder-textbox I enter MyFirstFolder and hit Save and then Select to save and close the dialog.
Next time I open the Media Picker I can see my bucket and I can expand it to see MyFirstFolder.
Again I go to the Create tab and select a file, select MyBucket, select MyFirstFolder and enter MySecondLevelFolder in the New Folder-textbox - this will result in a folder structure like this:
MyBucket
- MyFirstFolder
-- UploadedFile1
-- MySecondLevelFolder
--- UploadedFile2
Please let me know if you experience anything different then the above, as this is the intended result.
Btw. Permissions are automatically set to Public Read for both files and folders.
- Morten
Hi Morten
Thanks for the reply, it has been useful. I think the problem has been that my bucket already contained files and folders, it's these images I couldn't see.
When files are uploaded are they also stored witin umbraco database and then referenced by the package or do you get the files and structure direct from AmazonS3?
I decided to empty my test bucket and upload files and folders again, this worked fine when uploading new files. However the Parent Folder dropdown is still populated with the old folder structure. Where is this populated from?
Thanks for your help.
Alistair
The Parent Folder dropdown is now showing the correct files so it must have been cached, sorry about that.
I am still having an upload problem, when uploading to a folder which has been created by the picker before.Create new folders and uploading is working fine.
MyBucket
- MyFirstFolder
-- UploadedFile1
-- MySecondLevelFolder
--- UploadedFile2
Using your structure above, I can upload files to MyFirstFolder, but the files always can't be seen in the picker. Example 1 allows me to upload files and they can be seen on the amazon site but not in the Picker, Example 2 to allows me to upload files and I can choose them in the picker.
Example 1:
Container = MyBucket
Parent Folder = MyFirstFolder
New Folder =
Example 2:
Container = MyBucket
Parent Folder = Root
New Folder = MyFirstFolder
I was also wondering if you had a XLST example for using the package?
Thanks for all your help
Alistair
Hi Alistair,
1. No the files are not stored in Umbraco - they are uploaded directly to Amazon.
2. As you found yourself the old files and folder that showed up is likely a caching issue.
3. I'm a bit surprised that you are still having problems uploading to a subfolder, as I'm sure I have tested it. But I can't rule out that I have missed a scenario, so I will do some more tests as soon as I have a chance.
Please note one thing tho - when uploading a new file you won't be able to see it immidiately after uploading it (switching between the tabs), but you WILL be able to select it. Once you reopen the Media Picker you should see all the files and folders you have in your bucket(s).
4.XSLT should be pretty straight forward. $currentPage/fieldname as I recall - where fieldname is the alias of the S3 Provider property.
I'll get back to you once I have had a chance to do some further testing.
- Morten
Hi Morten
Thanks for the quickness of your reply and also your help. I have now got the XSLT working aswell :-)
Cheers
Alistair
Hi Alistar,
I just tested uploading to folders locally and it seems to be a caching issue - or at least the create-control isn't updated with new folders. I have sent an updated version to another Umbraco dev for testing.
Let me know if you also want to test it before I upload the fixed version to the project page.
- Morten
Hi Morten
I am quite happy to test the update for you, before you upload the fixed version to the project page.
Cheers
Alistair
Cool, here is a link to the fixed version:
http://cdn.sitereactor.dk/Files/[UMP]_Sitereactor_Amazon_S3_Provider_1.1.1.zip
Let me know how you get on with it.
- Morten
Hi Alistair,
Have you had a chance to test out the updated S3 provider yet?
- Morten
is working on a reply...