wp_insert_attachment Deals Just Fine With URI
-
In the codex, it says that wp_insert_attachment() needs the $filename to be the absolute path to the uploaded file.
On my website, I am using Gravity Forms form to receive file uploads and the form entry returns the URI of the file, not its path.
I noticed that creating an attachment with URI is working fine for me and also saw in the codex page, that the guid of the file in the example is a URI and not a path.
So, is it ok to use URI or am I missing something? because I have a feeling that I do…
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_insert_attachment Deals Just Fine With URI’ is closed to new replies.