Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (27 loc) · 937 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 937 Bytes

#Anchorcms image upload fix

Anchorcms: 0.9.1 + 0.9.2
#####With that patch you can upload images to "pages" and "posts" via drag&drop.

##Installation ####Care if you have modified files: new: anchor/libraries/uploader.php
replace: anchor/views/assets/js/dragdrop.js
replace: anchor/routes/posts.php

####Setup

  1. Download the files.
  2. Unzip the files and upload it to your Anchorcms installation.
  3. Clear your browser cache.
  4. Now you can upload an image with drag&drop it into the post editor.
  5. Have fun with blogging =)

###Problems If you upload an image and the link is like

![image1.jpg](//content/image1.jpg)

edit the anchor/routes/posts.php on line 263

from:

$uri = Config::app('url', '/') . '/content/' . basename($filepath);

to:

$uri = Config::app('url', '/') . 'content/' . basename($filepath);       

Thanks to tovic