New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local media upload needs to manually create folders (breaking on Windows) #228
Comments
Try pulling the latest version of master. There was an upload bug that @brianhyder fixed late last week. |
Confirmed media upload is working when running the latest version (although I'm on Linux, so the possibility remains that it's a Windows issue). |
Just done a git pull and it picked up the 2 latest changes from today (I have been pretty much picking up each change as they occur), pencilblue restarted ok, but still no joy. hmmm.... |
Ok, I'm going to assign this to @brianhyder, since he's been working on some media upload changes. He has a windows machine too. |
That's consistent with the upload_media controller breaking with the error you showed from the server console. On that, an ENOENT error means that the server can't access a file location. I've confirmed that the system is correctly creating the folder structure. Maybe your install of PencilBlue doesn't have write permissions. |
Ok, got somewhere; Pencillblue is running in An Administrator powershell console. Pencilblue is trying to write to the folder media/2014/9/, this folder does not exist. The folder media/2014/8/ does exist from when I previously uploaded media. Manually creating the folder media/2014/9/ and then re-trying to upload the image and it works! So....pencilblue is unable to create the folder '9'....but can happily write to the folder if it exists. ??? |
Awesome! Looks like we have a path to a fix! @brianhyder, media upload will just need to see if the folder path exists and make some directories if it doesn't. |
This is the issues I run into and reported here #203 |
ok |
Please send me the server side console output with log level set to
|
Is it creating the directory structure for media?
|
We were having an issue with media. Can you verify you have the latest on Also, look to see that the folder structure was created for the media item.
|
I reproduced it. Working on a fix. |
Pushed up branch issue/PB228. It should fix the windows problem. Need to test on Mac and Linux before merge |
Fixes #228. Corrects inability to upload media on windows with FS Media Provider
If you try to add a user´s photo BEFORE any media in a fresh pencilblue installation the buttons "Link to image..." and "Upload image..." open dialogs simply don´t work |
Check the browser's console to check if you are getting an angular On 15:00, Sun, Jan 18, 2015 Aníbal H. Flores notifications@github.com
|
I tried creating a new article this morning and attempted to upload new image (from media tab). However, it isn't working.
I came out of the article editor, went to the main Media Manager and attempted to upload the images from there, again didn't work.
The console output is throwing out the following error;
{"level":"error","message":"RequestHandler: An error occurred during controller execution. URL=[POST:/actions/admin/content/media/upload_media] ROUTE={"path":"actions/admin/content/media/upload_media","pattern":"^/actions/admin/content/media/upload_media[/]{0,1}$","path_vars":{},"expression":{},"themes":{"pencilblue":{"POST":{"method":"POST","path":"/actions/admin/content/media/upload_media","access_level":1,"auth_required":true,"content_type":"text/html"}}}}\nError: ENOENT, open 'C:\Users\Administrator\desktop\node_projects\pb-dma\public\media\2014\9\540ae62ebc6b451825000010-1410000430988.jpg'","timestamp":"2014-09-06T10:47:10.988Z"}
Any ideas?
The text was updated successfully, but these errors were encountered: