Tuesday, December 19, 2006

WordPress, OPML and Firefox

Yesterday, wanted to import all my bookmarks to this blog. Under Links management there is an option to import your links but it asks for an OPML file.

After short googling for OPML file type, I was able to find this web site, where one can download and install a Mozilla Firefox plugin that will enable export of all your bookmarks into a file of OPML type.

The next step is to upload the file using the local file option under links management/import links. My file was about 70KB. When I tried the upload using the upload form, I have received an error message that the file size exceeds the MAX_FILE_SIZE of the upload form.

There are at least 2 ways to handle this:

  • One is to open the OPML file, which is actually an XML file, and break it into a smaller chunks.

  • The other option is (that is what I did) to change the MAX_FILE_SIZE of the upload form.


Simply open /wp-admin/link-import.php in your WordPress directory and find the following line of code:

input type="hidden" value="30000" name="MAX_FILE_SIZE"



Change the value to allow for the upload of the file size that you have. I changed it to 100000. Save file, and refresh your browser.Try to upload the OPML file again. Mine was uploaded just fine.

No comments:

Post a Comment