PShannon 0 Posted December 27, 2020 Report Share Posted December 27, 2020 I have used the W3 template to produce a script that uploads image changes to a directory on my server, updates the URL in my database and logs the event. Works beautifully IF the source folder is: \Pictures or \Pictures\Personal But fails if it is any other source folder, even the peer folder \Pictures\BarImages Why? Quote Link to post Share on other sites
niche 143 Posted December 27, 2020 Report Share Posted December 27, 2020 Then, you'll need to define the directory dynamically. You'll probably need to post the relevant part of the code, you're actually using, to get the more help. Quote Link to post Share on other sites
PShannon 0 Posted December 28, 2020 Author Report Share Posted December 28, 2020 The W3 code allows the user to define the directory dynamically -- kinda? -- and that is my question. Respectfully, it would be useful to understand the problem statement before responding. Quote Link to post Share on other sites
dsonesuk 929 Posted December 28, 2020 Report Share Posted December 28, 2020 It kinda doesn't. It points only to a specific folder, it joins the specific folder and image file name to where the distination will be for that file. Quote Link to post Share on other sites
niche 143 Posted December 28, 2020 Report Share Posted December 28, 2020 (edited) That's why you might like to learn more about code so you can change it when you need to. Else, you can get stuck with someone else's code that was created for a purpose that's not entirely appropriate for your purpose. That means lots and lots of trials. Edited December 28, 2020 by niche Quote Link to post Share on other sites
PShannon 0 Posted December 29, 2020 Author Report Share Posted December 29, 2020 I've been doing this since 1966 and I build stuff quick and fast with patterns, components, templates, borrowed code or whatever gets me to where I want to be as fast as possible and I have no problem with tweaking code, but then again, my question had nothing to do with code. You didn't read it and if you did, you certainly didn't understand it. You did not contribute a single word responding to my inquiry. You just decided to lecture a guy you didn't know about what he needed. Now, please go away. You have nothing to contribute. Quote Link to post Share on other sites
niche 143 Posted December 29, 2020 Report Share Posted December 29, 2020 What's that in service of? Quote Link to post Share on other sites
dsonesuk 929 Posted December 29, 2020 Report Share Posted December 29, 2020 Right, it has nothing to do with coding, its magic! Sorry! You are on the wrong forum try https://blackwitchcoven.com/ If it was coding and you actually provided the code, we might have been able to help, but a vague question will result in a multitude of possible answers of which the most likely answer is its pointing to the wrong directory, it can't find what it is coded to look for, so it fails. But! All this nothing you want to hear so i will now depart, Abracadabra! 1 Quote Link to post Share on other sites
PShannon 0 Posted December 30, 2020 Author Report Share Posted December 30, 2020 You say one folder. I'm accessing two, but not a peer folder -- consistently -- and you mock me. Says a lot about you. If you don't know. Say so. Then there's the other guy. This forum is for children. Quote Link to post Share on other sites
dsonesuk 929 Posted December 30, 2020 Report Share Posted December 30, 2020 No! I didn't mention a specfic folder therefore whatever number of folders you have does not matter, its the folder you are trying to target. Again! We can't answer you correctly until we see the code. The code you linked to goes to a specific folder, you to create that folder, how do you change it to upload to another folder? Do you select from dropdown list, is it separated so each upload is to a specific folder? Is each parent folder saved to database along with image? We don't know, you are the one whose been cut pasting code without possible understanding how it work, we don't know, because there is no code to determine why it fails. We don't have powers to magically identify the problem. I mean have you ever been to garage with a photo of your car and said this is my car, there's a banging noise coming from, i have spent many building this car but i can't figure whats causing the banging, tell why its banging? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.