[RSS Feed/News] Uploading an Avatar via API using CSV file and PHP script

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi,

I'm working on a PHP script that uses a .csv file with userid and avatar file path in it to upload Avatar files from a local directory.

I'm having some issues with the correct format of the directory path, and I don't know how to deal with the different file extension (jpg, jpeg, png, etc)

The csv looks like this: (And it can be adjusted easily)

Code:

Code:
userid, avatar path
1244,/uploads/avatars/1628.jpg
1245,/uploads/avatars/1629.jpeg...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom