VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Downloads for Sale for VirtueMart
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [SOLVED] media file uploadproblem

media file uploadproblem 24 Sep 2015 12:02 #1

Hello,

when I try to upload a media file, I get the following error.

vmError: Not able to upload file, give path/url empty/too short please correct path in your virtuemart config
vmError: Media files must have an url
vmError: Sorry,It's not a valid media file

The Used url has the following : images/stories/virtuemart/typeless/ Every other thing is done as you show in the documentation.

Please help to solve this problem.

Another question, is any opportunity to upload all media files with ftp and sync it all (about 300 files), and not in the VM /media manager by hand?

Thanks
Peter

Please Log in or Create an account to join the conversation.

media file uploadproblem 01 Oct 2015 23:30 #2

Dear Peter,

First, the issue with the error message "Not able to upload file,..." is a typical VirtueMart misconfiguration: If you select "For Sale" as the Role for an upload, you need to make sure that the VirtueMart configuration has a SafePath set (i.e. a path on your server, where non-public downloadable files can be safely stored without being accessible by the webserver).

To set the SafePath, please go to VirtueMart's configuration page in the backend, tab "Templates", area "Media File Settings" in the lower left of the config page:



See also: docs.virtuemart.net/faqs/110-how-to-set-the-safe-path.html


Second, uploading multiple files via FTP is possible. In the media manager, simply use the "Synchronize media to VirtueMart" button at the top to import all new files in the safe path.

Note, however, that this will reset all your manually set file titles to the actual file names for ALL files in the media manager (I got burnt myself a while ago by this!).

Best regards,
Reinhold
Attachments:

Please Log in or Create an account to join the conversation.

media file uploadproblem 05 Oct 2015 19:33 #3

Thank You it solved my problem

Please Log in or Create an account to join the conversation.

[SOLVED] media file uploadproblem 05 Oct 2015 19:33 #4

Problem solved.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1