Hi,
Im trying to create a 'Commerce File License': when uploading the file, I get the error:
The file could not be uploaded, because the destination : is invalid.
I have setup a private file system path, and tried with either 'Public local files served by the webserver.' or 'Private local files served by Drupal.' selected.
Comments
Comment #1
recrit commentedThanks for testing!
This should be fixed per commit acdb6df. Let me know if you are still having issues.
Comment #2
PI_Ron commentedHi recrit,
I'm still getting the warnings after applying that.
What is the correct command to apply the patch? I tried creating acdb6df.patch in the modules root folder, then:
patch -p0 < acdb6df.patchbut no luck
Comment #3
recrit commentedThere is no patch, I was just referencing the commit. To update the module, you have to re-pull the git repo.
Let me know if you are still having issues after that.
Comment #4
PI_Ron commentedOk Ive repulled the repo.
The warning on the 'Add Commercial License' page is gone, however I'm still unable to upload a file.
Comment #5
recrit commentedI have update the repo with some modifications to correctly save a manually added license. Try again and let me know if you still cannot add a file.
Comment #6
PI_Ron commentedJust wan't to make sure I'm doing this right, I can't install git on my hosting, but I have it on my local machine, clone the repo like:
I then upload the whole commerce_file directory to my site. Still getting the error, and ':' directory has been created at /public_html/:
Comment #7
recrit commentedthere was some fixes to the field for the scheme handling, so do a pull again.
Please do the following:
- delete the incorrect directory ":" or "private:"
- delete commerce file field on your product entity
- uninstalling commerce_file completely. The field that gets automatically added to the license could still have some wrong settings stored so it needs removed. I added some code to do this on module uninstall.
- check that your private file system directory is set at admin/config/media/file-system
- reinstall commerce_file module
Comment #8
PI_Ron commentedSuccess! The file can be uploaded successfully, thanks!. However, a new error occurs after hitting Save.
Comment #9
recrit commentedI cannot reproduce this error. Try testing the automatic creation of a license through the order workflow to see if you still get an error. See steps to test at #1162462: Order Workflow Testing.
Comment #10
recrit commentedComment #11
thill_ commentedComment #12
luvRAI commentedThe file could not be uploaded, because the destination : is invalid.
plz give me suggestion
thanks luv