Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upload files; file upload modal displays CP Home

I am tearing my hair out with a file weird file upload issue that I have never run into before. For some reason I’m unable to upload images via the file manager (both in the file manager itself and if I upload with a custom field using the “file” fieldtype). Strangely, if I add files directly to any of the file upload directories, and sync the files, everything works fine.

After selecting the file and hitting “upload file” (see 01_choose_file.jpg) the modal window displays the CP homepage in an iframe (see 02_upload_progress.jpg).

Has anyone else seen this? Does anyone know how I can start troubleshooting this?

Background Info:

  • I’m running EECMS v2.5.2 - Build Date: 20120606 in MAMP (only 2 out of 15 sites I have set up locally are not working)
  • I have tried uploading images/files using the latest versions of Chrome, Chrome Canary, Safari, and Firefox (OS X 10.7.5)
  • This issue is showing up on the two latest sites I’ve started dev’ing locally on, no other site (locally or otherwise)

Things I’ve done:

  • Checked Apache/PHP error logs; they don’t show anything
  • Confirmed file upload paths and file upload directory settings are correct – I can sync files that i manually move into the various file upload directories
  • Permissions are fine; image manipulations and thumbnail creation work fine if I manually add files to the upload directories
  • Tested various other 2.5.2 installs I dev on locally and they work fine (settings on these two new sites are identical to sites that work)
  • Only a handful of native add-ons are enabled
  • “Apply XSS Filtering to uploaded files?” setting Yes or No does not make a difference

Huge thanks for any help!

I can't post images so here are links to the images: 01_choose_file.jpg: http://expressionengine.com/?ACT=51&fid=105&aid=16264_Jiof3p0V1gfEEFrpC55G&board_id=5

02_upload_progress.jpg: http://expressionengine.com/?ACT=51&fid=105&aid=16265_mjGH02xK2fIFZJI6kruP&board_id=5

like image 844
Paulo Avatar asked Oct 28 '12 18:10

Paulo


People also ask

Why can't I upload files to Salesforce?

Salesforce can't upload file According to Salesforce, files are essentially structured as Content, which has no way to set the Content Version's universal value. So when you can't upload files to Salesforce, most likely it's because the universal field value is required.

Why is my document not uploading?

Your file may be corrupted, which means there are metadata issues in the file that occurred during original document generation, scanning, or some other conversion process, has produced an invalid PDF (i.e., one that doesn't conform to PDF structure standards).

Why can't I upload files in MS teams?

If you're having trouble uploading files to Microsoft Teams meetings or chats, you should check if the services are temporarily down or unreachable. As discussed, Microsoft uses SharePoint and OneDrive for Business to cater to all your file sharing needs.

Why is Google Drive not uploading files?

Force Stop Google Drive (Android/iOS)You may have to restart the upload, and the best way to do that is to restart the Google Drive app. To do this on Android, go to “Settings -> Apps & notifications -> See all apps.” Find Drive in the list, tap “Force Stop,” then try your upload again.


2 Answers

I have sorted this out. I went back through to make sure I disabled all third party add-ons and I had forgotten to uninstall the "Quickee" extension http://devot-ee.com/add-ons/quickee. For now that seems to be the culprit.

I've submitted the bug to Matt (the developer) and it should be patched up soon.

like image 144
Paulo Avatar answered Oct 06 '22 22:10

Paulo


The ExpressionEngine filemanager sends out a AJAX POST request to the following URL:

http://YOUR_ADMIN_CP_URL?S=0&D=cp&C=content_files_modal&M=upload_file

Have you tried loading that URL yourself? You should get a page like this

file upload URL

But maybe EE is trying to POST to a different URL. You can find it by uploading a large file and while it's uploading using Firebug and in the Network tab at the bottom of the list you will find the URL EE is posting to
firebug network tab

like image 29
Victor Gutierrez Avatar answered Oct 07 '22 00:10

Victor Gutierrez